Skip to content
This repository was archived by the owner on Aug 28, 2020. It is now read-only.

Commit

Permalink
fix settings tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bdistin committed Jul 19, 2020
1 parent 46f4c1f commit d0b81a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -910,14 +910,14 @@ ava('Settings#update (Uninitialized)', async (test): Promise<void> => {
test.plan(1);

const { settings } = test.context;
await test.throwsAsync(() => settings.update('count', 6), { message: 'Cannot reset keys from an unsynchronized settings instance. Perhaps you want to call `sync()` first.' });
await test.throwsAsync(() => settings.update('count', 6), { message: 'Cannot update values from an unsynchronized settings instance. Perhaps you want to call `sync()` first.' });
});

ava('Settings#update (Unsynchronized)', async (test): Promise<void> => {
test.plan(1);

const { settings } = test.context;
await test.throwsAsync(() => settings.update('count', 6), { message: 'Cannot reset keys from an unsynchronized settings instance. Perhaps you want to call `sync()` first.' });
await test.throwsAsync(() => settings.update('count', 6), { message: 'Cannot update values from an unsynchronized settings instance. Perhaps you want to call `sync()` first.' });
});

ava('Settings#update (Invalid Key)', async (test): Promise<void> => {
Expand Down

0 comments on commit d0b81a6

Please sign in to comment.