Skip to content

Commit eaac36c

Browse files
committed
test: update-notifier fetches info
1 parent 366c687 commit eaac36c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/updater.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,14 @@ test('STANDALONE declaration present', (t) => {
3636
});
3737

3838
// Run updateNotifier API for the basic package. The target is to verify API still stands
39-
test('verify updater', (t) => {
39+
test('verify updater', async (t) => {
4040
const pkg = {
4141
name: 'snyk',
4242
version: '1.0.0',
4343
};
4444
const notifier = updateNotifier({ pkg });
45+
const info = await notifier.fetchInfo();
4546

46-
t.equal(notifier.packageName, 'snyk', 'Successfull call to notifier');
47+
t.equal(info.name, 'snyk', 'Successful call to notifier');
4748
t.end();
4849
});

0 commit comments

Comments
 (0)