From 9cea2244aeaef431290ee454a6f7e12c1a3ea835 Mon Sep 17 00:00:00 2001 From: Angelo Veltens Date: Mon, 12 Aug 2024 19:28:15 +0200 Subject: [PATCH] chats: add missing await to e2e test --- .../rdflib/src/e2e-tests/create-chat.e2e.spec.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/chats/rdflib/src/e2e-tests/create-chat.e2e.spec.ts b/chats/rdflib/src/e2e-tests/create-chat.e2e.spec.ts index e5691f0..99efd09 100644 --- a/chats/rdflib/src/e2e-tests/create-chat.e2e.spec.ts +++ b/chats/rdflib/src/e2e-tests/create-chat.e2e.spec.ts @@ -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", + ), ); }); - -}); \ No newline at end of file +});