Skip to content

Commit 447fd96

Browse files
Updating doRequest test file (#96)
* update multiple mutation tests * reverting changes from multiple mutation test
1 parent c9a0167 commit 447fd96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/doRequest.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ describe("doRequest", () => {
4646
expect(res.getJson()).toEqual({ me: [{ name: "ok 200" }, { name: "ok 300" }, { name: "ok 400" }] });
4747
});
4848

49-
it("fails with two mutations since currently only single is supported", async () => {
49+
it("fails with two mutations since multiple mutations are supported yet", async () => {
5050
const client = await setup();
5151
await setSchema(client, `
5252
name: string @index(fulltext) .
@@ -76,7 +76,7 @@ describe("doRequest", () => {
7676
req.setCommitNow(true);
7777

7878
const res = client.newTxn().doRequest(req);
79-
const EMPTY_ERROR = new Error(`${UNKNOWN_CODE}: Empty query`);
79+
const EMPTY_ERROR = new Error(`${UNKNOWN_CODE}: empty request`);
8080
await expect(res).rejects.toEqual(EMPTY_ERROR);
8181
});
8282
});

0 commit comments

Comments
 (0)