mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
fix tests
This commit is contained in:
parent
059202be09
commit
35037e2dc9
@ -61,11 +61,11 @@ describe('models/Setting', () => {
|
||||
await Setting.reset();
|
||||
|
||||
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 () => {
|
||||
await expectThrow(async () => Setting.setValue('myCustom', '123'));
|
||||
await expectThrow(async () => Setting.setValue('myCustom', '123'), 'unknown_key');
|
||||
|
||||
await Setting.registerSetting('myCustom', {
|
||||
public: true,
|
||||
|
Loading…
Reference in New Issue
Block a user