11'use strict' ;
22
3- const expect = require ( 'chai' ) . expect ;
3+ const expect = require ( 'chai' ) . use ( require ( 'chai-string' ) ) . expect ;
44const RSVP = require ( 'rsvp' ) ;
55const request = RSVP . denodeify ( require ( 'request' ) ) ;
66
@@ -35,7 +35,7 @@ describe('simple acceptance', function() {
3535 } )
3636 . then ( function ( response ) {
3737 expect ( response . statusCode ) . to . equal ( 200 ) ;
38- expect ( response . headers [ "content-type" ] ) . to . eq ( "text/html; charset=utf-8" ) ;
38+ expect ( response . headers [ "content-type" ] ) . to . equalIgnoreCase ( "text/html; charset=utf-8" ) ;
3939 expect ( response . body ) . to . contain ( "Welcome to Ember.js" ) ;
4040 } ) ;
4141 } ) ;
@@ -49,7 +49,7 @@ describe('simple acceptance', function() {
4949 } )
5050 . then ( function ( response ) {
5151 expect ( response . statusCode ) . to . equal ( 200 ) ;
52- expect ( response . headers [ "content-type" ] ) . to . eq ( "text/html; charset=utf-8" ) ;
52+ expect ( response . headers [ "content-type" ] ) . to . equalIgnoreCase ( "text/html; charset=utf-8" ) ;
5353 expect ( response . body ) . to . contain ( "Welcome to Ember.js" ) ;
5454 } ) ;
5555 } ) ;
@@ -63,7 +63,7 @@ describe('simple acceptance', function() {
6363 } )
6464 . then ( function ( response ) {
6565 expect ( response . statusCode ) . to . equal ( 200 ) ;
66- expect ( response . headers [ "content-type" ] ) . to . eq ( "text/html; charset=utf-8" ) ;
66+ expect ( response . headers [ "content-type" ] ) . to . equalIgnoreCase ( "text/html; charset=utf-8" ) ;
6767 expect ( response . body ) . to . contain ( "<!-- EMBER_CLI_FASTBOOT_BODY -->" ) ;
6868 } ) ;
6969 } ) ;
@@ -77,7 +77,7 @@ describe('simple acceptance', function() {
7777 } )
7878 . then ( function ( response ) {
7979 expect ( response . statusCode ) . to . equal ( 200 ) ;
80- expect ( response . headers [ "content-type" ] ) . to . eq ( "text/html; charset=utf-8" ) ;
80+ expect ( response . headers [ "content-type" ] ) . to . equalIgnoreCase ( "text/html; charset=utf-8" ) ;
8181 expect ( response . body ) . to . contain ( "Welcome to Ember.js" ) ;
8282 expect ( response . body ) . to . contain ( "Posts Route!" ) ;
8383 } ) ;
@@ -92,7 +92,7 @@ describe('simple acceptance', function() {
9292 } )
9393 . then ( function ( response ) {
9494 expect ( response . statusCode ) . to . equal ( 200 ) ;
95- expect ( response . headers [ "content-type" ] ) . to . eq ( "text/html; charset=utf-8" ) ;
95+ expect ( response . headers [ "content-type" ] ) . to . equalIgnoreCase ( "text/html; charset=utf-8" ) ;
9696 expect ( response . body ) . to . contain ( "<!-- EMBER_CLI_FASTBOOT_BODY -->" ) ;
9797 } ) ;
9898 } ) ;
@@ -106,7 +106,7 @@ describe('simple acceptance', function() {
106106 } )
107107 . then ( function ( response ) {
108108 expect ( response . statusCode ) . to . equal ( 500 ) ;
109- expect ( response . headers [ "content-type" ] ) . to . eq ( "text/html; charset=utf-8" ) ;
109+ expect ( response . headers [ "content-type" ] ) . to . equalIgnoreCase ( "text/html; charset=utf-8" ) ;
110110 expect ( response . body ) . to . contain ( "BOOM" ) ;
111111 } ) ;
112112 } ) ;
@@ -121,7 +121,7 @@ describe('simple acceptance', function() {
121121 . then ( function ( response ) {
122122 console . log ( response . body ) ;
123123 expect ( response . statusCode ) . to . equal ( 200 ) ;
124- expect ( response . headers [ "content-type" ] ) . to . eq ( "text/html; charset=utf-8" ) ;
124+ expect ( response . headers [ "content-type" ] ) . to . equalIgnoreCase ( "text/html; charset=utf-8" ) ;
125125 expect ( response . body ) . to . contain ( "FastBoot compatible vendor file: FastBoot default default value" ) ;
126126 } ) ;
127127 } ) ;
@@ -131,7 +131,7 @@ describe('simple acceptance', function() {
131131 . then ( function ( response ) {
132132 // Asset serving is on by default
133133 expect ( response . statusCode ) . to . equal ( 200 ) ;
134- expect ( response . headers [ "content-type" ] ) . to . eq ( "application/javascript; charset=utf-8" ) ;
134+ expect ( response . headers [ "content-type" ] ) . to . equalIgnoreCase ( "application/javascript; charset=utf-8" ) ;
135135 expect ( response . body ) . to . contain ( "Ember =" ) ;
136136 } ) ;
137137 } ) ;
@@ -141,7 +141,7 @@ describe('simple acceptance', function() {
141141 . then ( function ( response ) {
142142 // Asset serving is on by default
143143 expect ( response . statusCode ) . to . equal ( 200 ) ;
144- expect ( response . headers [ "content-type" ] ) . to . eq ( "application/javascript; charset=utf-8" ) ;
144+ expect ( response . headers [ "content-type" ] ) . to . equalIgnoreCase ( "application/javascript; charset=utf-8" ) ;
145145 expect ( response . body ) . to . not . contain ( "autoBoot: false" ) ;
146146 } ) ;
147147 } ) ;
0 commit comments