Skip to content

Commit

Permalink
wasm: add a test for the deprecated previewCitationCluster
Browse files Browse the repository at this point in the history
  • Loading branch information
cormacrelf committed Dec 1, 2021
1 parent e3d9391 commit 6750e71
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions crates/wasm/js-tests/node/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,16 @@ describe("previewCluster", () => {
})
});

test("should also work via deprecated previewCitationCluster(cites: Cite[], ...)", () => {
pccSetup((driver, [_, two]) => {
let res = driver.previewCitationCluster(
[{ id: "r1" }],
[{ note: 1 }, { id: two, note: 5 }]
).unwrap();
expect(res).toEqual("ONE");
})
});

});

describe("AuthorOnly and friends", () => {
Expand Down

0 comments on commit 6750e71

Please sign in to comment.