update
This commit is contained in:
15
test/test.node+bun+deno.ts
Normal file
15
test/test.node+bun+deno.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { expect, tap } from '@push.rocks/tapbundle';
|
||||
import * as smartupdate from '../ts/index.js';
|
||||
|
||||
let testSmartUpdate: smartupdate.SmartUpdate;
|
||||
|
||||
tap.test('should create an instance of SmartUpdate', async () => {
|
||||
testSmartUpdate = new smartupdate.SmartUpdate();
|
||||
});
|
||||
|
||||
tap.test('should check for a npm module', async () => {
|
||||
const result = await testSmartUpdate.check('lodash', '1.0.5');
|
||||
expect(result).toBeTrue();
|
||||
});
|
||||
|
||||
tap.start();
|
||||
Reference in New Issue
Block a user