Skip to content

Commit 4ce71a6

Browse files
authored
Merge pull request #583 from rondale-sc/fix-content-type-header-utf-capitlization-bug
Fix tests
2 parents 3e22183 + 5c67684 commit 4ce71a6

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

test/root-url-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ describe('rootUrl 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.eq("text/html; charset=utf-8");
6767
expect(response.body).to.contain("<!-- EMBER_CLI_FASTBOOT_BODY -->");
6868
});
6969
});
70-
});
70+
});

test/serve-assets-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('serve assets acceptance', function() {
3030
return request('http://localhost:49741/assets/vendor.js')
3131
.then(function(response) {
3232
expect(response.statusCode).to.equal(200);
33-
expect(response.headers["content-type"]).to.eq("application/javascript; charset=UTF-8");
33+
expect(response.headers["content-type"]).to.eq("application/javascript; charset=utf-8");
3434
expect(response.body).to.contain("Ember =");
3535
});
3636
});
@@ -39,7 +39,7 @@ describe('serve assets acceptance', function() {
3939
return request('http://localhost:49741/assets/dummy.js')
4040
.then(function(response) {
4141
expect(response.statusCode).to.equal(200);
42-
expect(response.headers["content-type"]).to.eq("application/javascript; charset=UTF-8");
42+
expect(response.headers["content-type"]).to.eq("application/javascript; charset=utf-8");
4343
expect(response.body).to.contain("this.route('posts')");
4444
});
4545
});

test/simple-test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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.eq("text/html; charset=utf-8");
6767
expect(response.body).to.contain("<!-- EMBER_CLI_FASTBOOT_BODY -->");
6868
});
6969
});
@@ -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.eq("text/html; charset=utf-8");
9696
expect(response.body).to.contain("<!-- EMBER_CLI_FASTBOOT_BODY -->");
9797
});
9898
});
@@ -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.eq("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.eq("application/javascript; charset=utf-8");
145145
expect(response.body).to.not.contain("autoBoot: false");
146146
});
147147
});

0 commit comments

Comments
 (0)