Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbrand committed Mar 23, 2024
1 parent 07b4e4a commit e223ec0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/headless/tests/persistence.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ describe("The persistent store", function() {

it("is unique to the user based on their JID",
mock.initConverse([], {'persistent_store': 'IndexedDB'}, (_converse) => {

expect(_converse.storage.persistent.config().storeName).toBe(_converse.bare_jid);
expect(_converse.storage.persistent.config().description).toBe('indexedDB instance');
const { session, storage } = _converse;
const bare_jid = session.get('bare_jid');
expect(storage.persistent.config().storeName).toBe(bare_jid);
expect(storage.persistent.config().description).toBe('indexedDB instance');
}));
});

0 comments on commit e223ec0

Please sign in to comment.