Skip to content

Commit

Permalink
chats: prepare stubs for create chat feature
Browse files Browse the repository at this point in the history
  • Loading branch information
angelo-v committed Aug 12, 2024
1 parent e7ae06e commit 391f1bb
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
10 changes: 10 additions & 0 deletions chats/rdflib/examples/create-chat.js
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions chats/rdflib/src/e2e-tests/create-chat.e2e.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { setupModule } from "../test-support/setupModule";

describe("chats", () => {
it("module can be created", () => {
const chats = setupModule();
expect(chats).toBeDefined()
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { setupModule } from "../../test-support/setupModule";

describe("create chat", () => {
it("module can be created", () => {
const chats = setupModule();
expect(chats).toBeDefined()
});
});

0 comments on commit 391f1bb

Please sign in to comment.