33var expect = require ( 'chai' ) . expect ;
44var FastBootHeaders = require ( './../src/fastboot-headers.js' ) ;
55
6- describe ( 'FastBootHeaders' , function ( ) {
7- it ( 'lower normalizes the headers to lowercase' , function ( ) {
6+ describe ( 'FastBootHeaders' , function ( ) {
7+ it ( 'lower normalizes the headers to lowercase' , function ( ) {
88 var headers = {
99 'X-Test-Header' : 'value1, value2' ,
1010 } ;
@@ -13,7 +13,7 @@ describe('FastBootHeaders', function () {
1313 expect ( headers . getAll ( 'x-test-header' ) ) . to . deep . equal ( [ 'value1, value2' ] ) ;
1414 } ) ;
1515
16- it ( 'returns an array from getAll when header value is string' , function ( ) {
16+ it ( 'returns an array from getAll when header value is string' , function ( ) {
1717 var headers = {
1818 'x-test-header' : 'value1, value2' ,
1919 } ;
@@ -22,7 +22,7 @@ describe('FastBootHeaders', function () {
2222 expect ( headers . getAll ( 'x-test-header' ) ) . to . deep . equal ( [ 'value1, value2' ] ) ;
2323 } ) ;
2424
25- it ( 'returns an array of header values from getAll, regardless of header name casing' , function ( ) {
25+ it ( 'returns an array of header values from getAll, regardless of header name casing' , function ( ) {
2626 var headers = {
2727 'x-test-header' : [ 'value1' , 'value2' ] ,
2828 } ;
@@ -32,7 +32,7 @@ describe('FastBootHeaders', function () {
3232 expect ( headers . getAll ( 'x-test-header' ) ) . to . deep . equal ( [ 'value1' , 'value2' ] ) ;
3333 } ) ;
3434
35- it ( 'returns an emtpy array when a header is not present' , function ( ) {
35+ it ( 'returns an emtpy array when a header is not present' , function ( ) {
3636 var headers = {
3737 'x-test-header' : [ 'value1' , 'value2' ] ,
3838 } ;
@@ -42,7 +42,7 @@ describe('FastBootHeaders', function () {
4242 expect ( headers . getAll ( 'host' ) ) . to . deep . equal ( [ ] ) ;
4343 } ) ;
4444
45- it ( 'returns the first value when using get, regardless of case' , function ( ) {
45+ it ( 'returns the first value when using get, regardless of case' , function ( ) {
4646 var headers = {
4747 'x-test-header' : [ 'value1' , 'value2' ] ,
4848 } ;
@@ -52,7 +52,7 @@ describe('FastBootHeaders', function () {
5252 expect ( headers . get ( 'x-test-header' ) ) . to . equal ( 'value1' ) ;
5353 } ) ;
5454
55- it ( 'returns null when using get when a header is not present' , function ( ) {
55+ it ( 'returns null when using get when a header is not present' , function ( ) {
5656 var headers = {
5757 'x-test-header' : [ 'value1' , 'value2' ] ,
5858 } ;
@@ -62,7 +62,7 @@ describe('FastBootHeaders', function () {
6262 expect ( headers . get ( 'host' ) ) . to . be . null ;
6363 } ) ;
6464
65- it ( 'returns whether or not a header is present via has, regardless of casing' , function ( ) {
65+ it ( 'returns whether or not a header is present via has, regardless of casing' , function ( ) {
6666 var headers = {
6767 'x-test-header' : [ 'value1' , 'value2' ] ,
6868 } ;
@@ -74,7 +74,7 @@ describe('FastBootHeaders', function () {
7474 expect ( headers . has ( 'host' ) ) . to . be . false ;
7575 } ) ;
7676
77- it ( 'appends entries onto a header, regardless of casing' , function ( ) {
77+ it ( 'appends entries onto a header, regardless of casing' , function ( ) {
7878 var headers = new FastBootHeaders ( ) ;
7979
8080 expect ( headers . has ( 'x-foo' ) ) . to . be . false ;
@@ -87,7 +87,7 @@ describe('FastBootHeaders', function () {
8787 expect ( headers . getAll ( 'x-foo' ) ) . to . deep . equal ( [ 'bar' , 'baz' ] ) ;
8888 } ) ;
8989
90- it ( 'deletes entries onto a header, regardless of casing' , function ( ) {
90+ it ( 'deletes entries onto a header, regardless of casing' , function ( ) {
9191 var headers = new FastBootHeaders ( ) ;
9292
9393 headers . append ( 'X-Foo' , 'bar' ) ;
@@ -97,7 +97,7 @@ describe('FastBootHeaders', function () {
9797 expect ( headers . has ( 'x-foo' ) ) . to . be . false ;
9898 } ) ;
9999
100- it ( 'returns an iterator for the header/value pairs when calling entries' , function ( ) {
100+ it ( 'returns an iterator for the header/value pairs when calling entries' , function ( ) {
101101 var headers = new FastBootHeaders ( ) ;
102102
103103 headers . append ( 'X-Foo' , 'foo' ) ;
@@ -111,7 +111,7 @@ describe('FastBootHeaders', function () {
111111 expect ( entriesIterator . next ( ) ) . to . deep . equal ( { value : undefined , done : true } ) ;
112112 } ) ;
113113
114- it ( 'returns an iterator for keys containing all the keys' , function ( ) {
114+ it ( 'returns an iterator for keys containing all the keys' , function ( ) {
115115 var headers = new FastBootHeaders ( ) ;
116116
117117 headers . append ( 'X-Foo' , 'foo' ) ;
@@ -125,7 +125,7 @@ describe('FastBootHeaders', function () {
125125 expect ( entriesIterator . next ( ) ) . to . deep . equal ( { value : undefined , done : true } ) ;
126126 } ) ;
127127
128- it ( 'sets a header, overwriting existing values, regardless of casing' , function ( ) {
128+ it ( 'sets a header, overwriting existing values, regardless of casing' , function ( ) {
129129 var headers = new FastBootHeaders ( ) ;
130130
131131 expect ( headers . getAll ( 'x-foo' ) ) . to . deep . equal ( [ ] ) ;
@@ -141,7 +141,7 @@ describe('FastBootHeaders', function () {
141141 expect ( headers . getAll ( 'x-bar' ) ) . to . deep . equal ( [ 'baz' ] ) ;
142142 } ) ;
143143
144- it ( 'returns an iterator for values containing all the values' , function ( ) {
144+ it ( 'returns an iterator for values containing all the values' , function ( ) {
145145 var headers = new FastBootHeaders ( ) ;
146146
147147 headers . append ( 'X-Foo' , 'foo' ) ;
@@ -155,7 +155,7 @@ describe('FastBootHeaders', function () {
155155 expect ( entriesIterator . next ( ) ) . to . deep . equal ( { value : undefined , done : true } ) ;
156156 } ) ;
157157
158- it ( 'when mistakenly used `Ember.get` with an unknown property, it attempts to get the header with that name and warns the user to use `headers.get` instead' , function ( ) {
158+ it ( 'when mistakenly used `Ember.get` with an unknown property, it attempts to get the header with that name and warns the user to use `headers.get` instead' , function ( ) {
159159 var headers = {
160160 'x-test-header' : [ 'value1' , 'value2' ] ,
161161 } ;
0 commit comments