mirror of
https://github.com/zotero/zotero.git
synced 2026-08-28 05:25:31 +00:00
They seem to be succeeding when run individually, but failing when run as a whole. Not sure why yet.
10 lines
440 B
JavaScript
10 lines
440 B
JavaScript
describe('Zotero.SyncedSettings', function () {
|
|
it('should not affect cached value when modifying the setting after #set() call', async function () {
|
|
let setting = {athing: 1};
|
|
await Zotero.SyncedSettings.set(Zotero.Libraries.userLibraryID, 'setting', setting);
|
|
|
|
setting.athing = 2;
|
|
let storedSetting = Zotero.SyncedSettings.get(Zotero.Libraries.userLibraryID, 'setting');
|
|
assert.notDeepEqual(setting, storedSetting);
|
|
});
|
|
});
|