Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Oct 17, 2023
1 parent bc5c429 commit f56ac94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ module('unit/adapters/rest-adapter/ajax-options - building requests', function (
type: 'POST',
method: 'POST',
headers: {
'content-type': 'application/json;charset=utf-8',
'content-type': 'application/json; charset=utf-8',
},
url: 'example.com',
});
Expand Down Expand Up @@ -286,7 +286,7 @@ module('unit/adapters/rest-adapter/ajax-options - building requests', function (
let type = 'POST';
let ajaxOptions = adapter.ajaxOptions(url, type, { data: { type: 'post' } });

assert.strictEqual(ajaxOptions.contentType, 'application/json;charset=utf-8', 'contentType is set with POST');
assert.strictEqual(ajaxOptions.contentType, 'application/json; charset=utf-8', 'contentType is set with POST');
});

test('ajaxOptions() Content-Type is set with ajax POST with data if useFetch', function (assert) {
Expand All @@ -305,7 +305,7 @@ module('unit/adapters/rest-adapter/ajax-options - building requests', function (

assert.strictEqual(
ajaxOptions.headers['content-type'],
'application/json;charset=utf-8',
'application/json; charset=utf-8',
'contentType is set with POST'
);
});
Expand Down
4 changes: 2 additions & 2 deletions tests/main/tests/unit/utils/parse-response-headers-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module('unit/adapters/parse-response-headers', function () {
let headers = parseResponseHeaders(headersString);

assert.strictEqual(headers['content-encoding'], 'gzip', 'parses basic header pair');
assert.strictEqual(headers['content-type'], 'application/json;charset=utf-8', 'parses header with complex value');
assert.strictEqual(headers['content-type'], 'application/json; charset=utf-8', 'parses header with complex value');
assert.strictEqual(headers['date'], 'Fri, 05 Feb 2016 21:47:56 GMT', 'parses header with date value');
});

Expand Down Expand Up @@ -111,7 +111,7 @@ module('unit/adapters/parse-response-headers', function () {
let headers = parseResponseHeaders(headersString);

assert.strictEqual(headers['Content-Encoding'], 'gzip', 'parses basic header pair');
assert.strictEqual(headers['content-type'], 'application/json;charset=utf-8', 'parses header with complex value');
assert.strictEqual(headers['content-type'], 'application/json; charset=utf-8', 'parses header with complex value');
assert.strictEqual(headers['date'], 'Fri, 05 Feb 2016 21:47:56 GMT', 'parses header with date value');
});
});

0 comments on commit f56ac94

Please sign in to comment.