Skip to content

Commit

Permalink
chats: add missing await to e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
angelo-v committed Aug 12, 2024
1 parent 9c26c8c commit 9cea224
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions chats/rdflib/src/e2e-tests/create-chat.e2e.spec.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import { setupModule } from "../test-support/setupModule";

describe("chats", () => {
it("creates a new chat", () => {
it("creates a new chat", async () => {
const chats = setupModule();
const uri = chats.createChat({
const uri = await chats.createChat({
containerUri: "http://localhost:3456/alice/chats/",
name: "A new chat"
})
name: "A new chat",
});
expect(uri).toMatch(
new RegExp("http://localhost:3456/alice/chats/[a-zA-Z0-9]{6}/index.ttl#this"),
new RegExp(
"http://localhost:3456/alice/chats/[a-zA-Z0-9]{6}/index.ttl#this",
),
);
});

});
});

0 comments on commit 9cea224

Please sign in to comment.