diff --git a/chats/rdflib/examples/create-chat.js b/chats/rdflib/examples/create-chat.js new file mode 100644 index 0000000..a99189a --- /dev/null +++ b/chats/rdflib/examples/create-chat.js @@ -0,0 +1,10 @@ +import ChatsModule from '../dist/index.js'; +import {Fetcher, graph, UpdateManager} from "rdflib"; + +const store = graph() +const fetcher = new Fetcher(store) +const updater = new UpdateManager(store) + +new ChatsModule({store, fetcher, updater}) + +// TODO use modules diff --git a/chats/rdflib/src/e2e-tests/create-chat.e2e.spec.ts b/chats/rdflib/src/e2e-tests/create-chat.e2e.spec.ts new file mode 100644 index 0000000..ad2e548 --- /dev/null +++ b/chats/rdflib/src/e2e-tests/create-chat.e2e.spec.ts @@ -0,0 +1,8 @@ +import { setupModule } from "../test-support/setupModule"; + +describe("chats", () => { + it("module can be created", () => { + const chats = setupModule(); + expect(chats).toBeDefined() + }); +}); \ No newline at end of file diff --git a/chats/rdflib/src/module/_integration-tests/create-chat.integration.spec.ts b/chats/rdflib/src/module/_integration-tests/create-chat.integration.spec.ts new file mode 100644 index 0000000..4a1f923 --- /dev/null +++ b/chats/rdflib/src/module/_integration-tests/create-chat.integration.spec.ts @@ -0,0 +1,8 @@ +import { setupModule } from "../../test-support/setupModule"; + +describe("create chat", () => { + it("module can be created", () => { + const chats = setupModule(); + expect(chats).toBeDefined() + }); +}); \ No newline at end of file