We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 366c687 commit eaac36cCopy full SHA for eaac36c
test/updater.test.ts
@@ -36,13 +36,14 @@ test('STANDALONE declaration present', (t) => {
36
});
37
38
// Run updateNotifier API for the basic package. The target is to verify API still stands
39
-test('verify updater', (t) => {
+test('verify updater', async (t) => {
40
const pkg = {
41
name: 'snyk',
42
version: '1.0.0',
43
};
44
const notifier = updateNotifier({ pkg });
45
+ const info = await notifier.fetchInfo();
46
- t.equal(notifier.packageName, 'snyk', 'Successfull call to notifier');
47
+ t.equal(info.name, 'snyk', 'Successful call to notifier');
48
t.end();
49
0 commit comments