Skip to content

Commit

Permalink
chore(tests): await promise in config.test.js (#639)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 authored Feb 7, 2025
1 parent 8163608 commit 9317593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ describe(`key store should be up-to-date`, () => {
it(`should contain up-to-date npm keys`, async () => {
const r = await globalThis.fetch(new URL(`/-/npm/v1/keys`, DEFAULT_NPM_REGISTRY_URL));
expect(r.ok).toBe(true);
expect(r.json()).resolves.toMatchObject({keys: defaultConfig.keys.npm});
await expect(r.json()).resolves.toMatchObject({keys: defaultConfig.keys.npm});
});
});

0 comments on commit 9317593

Please sign in to comment.