Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
elringus committed Feb 12, 2024
1 parent 2a65b09 commit 44798c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions backend/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "backend",
"main": "Naninovel.Language.WASM/bin/backend/backend.mjs",
"types": "Naninovel.Language.WASM/bin/backend/types/backend.d.ts"
"type": "module",
"main": "Naninovel.Language.WASM/bin/backend/index.mjs",
"types": "Naninovel.Language.WASM/bin/backend/types/index.d.ts"
}
3 changes: 1 addition & 2 deletions test/server.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ test("when applying custom metadata update metadata is invoked", () => {
});

test("publish diagnostics on backend routes to send diagnostics", () => {
// @ts-ignore
cs.DiagnosticPublisher.$publishDiagnostics("foo", []);
cs.DiagnosticPublisher.publishDiagnostics("foo", []);
expect(connection.sendDiagnostics).toBeCalledWith({ uri: "foo", diagnostics: [] });
});

Expand Down

0 comments on commit 44798c0

Please sign in to comment.