1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

fix tests

This commit is contained in:
Laurent Cozic 2023-05-08 17:30:30 +01:00
parent 059202be09
commit 35037e2dc9

View File

@ -61,11 +61,11 @@ describe('models/Setting', () => {
await Setting.reset(); await Setting.reset();
await expectNotThrow(async () => Setting.load()); await expectNotThrow(async () => Setting.load());
await expectThrow(async () => Setting.value('itsgone')); await expectThrow(async () => Setting.value('itsgone'), 'unknown_key');
})); }));
it('should allow registering new settings dynamically', (async () => { it('should allow registering new settings dynamically', (async () => {
await expectThrow(async () => Setting.setValue('myCustom', '123')); await expectThrow(async () => Setting.setValue('myCustom', '123'), 'unknown_key');
await Setting.registerSetting('myCustom', { await Setting.registerSetting('myCustom', {
public: true, public: true,