Skip to content

Commit db2ad50

Browse files
committed
test: update tests
1 parent a953a33 commit db2ad50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/index.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,16 +168,16 @@ describe("ofetch", () => {
168168
method: "POST",
169169
body: data,
170170
});
171-
expect(body).to.eq("foo=bar");
171+
expect(body).toMatchObject({ foo: 'bar' });
172172
});
173173

174174
it("404", async () => {
175175
const error = await $fetch(getURL("404")).catch((error_) => error_);
176-
expect(error.toString()).to.contain("Cannot find any route matching /404.");
176+
expect(error.toString()).to.contain("Cannot find any path matching /404.");
177177
expect(error.data).to.deep.eq({
178178
stack: [],
179179
statusCode: 404,
180-
statusMessage: "Cannot find any route matching /404.",
180+
statusMessage: "Cannot find any path matching /404.",
181181
});
182182
expect(error.response?._data).to.deep.eq(error.data);
183183
expect(error.request).to.equal(getURL("404"));

0 commit comments

Comments
 (0)