smartupdate/test/test.ts

16 lines
439 B
TypeScript
Raw Normal View History

2023-07-26 18:51:11 +00:00
import { expect, tap } from '@push.rocks/tapbundle';
2022-04-13 14:02:29 +00:00
import * as smartupdate from '../ts/index.js';
2017-08-15 17:29:18 +00:00
2019-09-06 11:58:17 +00:00
let testSmartUpdate: smartupdate.SmartUpdate;
tap.test('should create an instance of SmartUpdate', async () => {
testSmartUpdate = new smartupdate.SmartUpdate();
});
2017-08-16 16:54:23 +00:00
tap.test('should check for a npm module', async () => {
2022-04-13 14:15:23 +00:00
const result = await testSmartUpdate.check('lodash', '1.0.5');
expect(result).toBeTrue();
});
2017-08-15 17:29:18 +00:00
tap.start();