We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c36e5ea commit 44195c8Copy full SHA for 44195c8
1 file changed
test/fastboot-headers-test.js
@@ -6,6 +6,15 @@ var alchemistRequire = require('broccoli-module-alchemist/require');
6
var FastBootHeaders = alchemistRequire('fastboot-headers.js');
7
8
describe('FastBootHeaders', function() {
9
+ it('returns an array from getAll when header value is string', function() {
10
+ var headers = {
11
+ 'x-test-header': 'value1, value2'
12
+ };
13
+ headers = new FastBootHeaders(headers);
14
+
15
+ expect(headers.getAll('x-test-header')).to.deep.equal(['value1, value2']);
16
+ });
17
18
it('returns an array of header values from getAll, regardless of header name casing', function() {
19
var headers = {
20
'x-test-header': ['value1', 'value2']
0 commit comments