Skip to content

Commit 73496f2

Browse files
committed
Fix test
1 parent 1a18a9c commit 73496f2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/services/http/http.spec.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ describe("$http", function () {
8484
expect(response.config.method).toBe("GET");
8585
});
8686

87-
it("sets deffault headers on request", async function () {
87+
it("sets default headers on request", async function () {
8888
await $http({
8989
url: "/mock/hello",
9090
headers: {
@@ -96,9 +96,7 @@ describe("$http", function () {
9696
});
9797
expect(response).toBeDefined();
9898

99-
expect(response.config.headers.Accept).toBe(
100-
"application/json, text/plain, */*",
101-
);
99+
expect(response.config.headers.Accept).toBe("text/plain");
102100
expect(response.config.headers["Cache-Control"]).toBe("no-cache");
103101
});
104102

0 commit comments

Comments
 (0)