Skip to content

Commit

Permalink
Do not export onResetEmbeddedKey
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivia Thet committed Oct 19, 2023
1 parent e175847 commit 75f52ef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,6 @@ <h2>Message log</h2>
getItemWithExpiry,
getEmbeddedKey,
setEmbeddedKey,
onResetEmbeddedKey,
importRecoveryCredential,
compressRawPublicKey,
uncompressRawPublicKey,
Expand Down
6 changes: 1 addition & 5 deletions index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,12 @@ describe("TKHQ", () => {
expect(item).toBeNull();
})

it("gets, sets and resets embedded key in localStorage", async () => {
it("gets and sets embedded key in localStorage", async () => {
expect(TKHQ.getEmbeddedKey()).toBe(null);

// Set a dummy "key"
TKHQ.setEmbeddedKey({"foo": "bar"});
expect(TKHQ.getEmbeddedKey()).toEqual({"foo": "bar"});

// Now reset and assert we're back to no embedded key
TKHQ.onResetEmbeddedKey();
expect(TKHQ.getEmbeddedKey()).toBe(null);
})

it("inits embedded key and is idempotent", async () => {
Expand Down

0 comments on commit 75f52ef

Please sign in to comment.