smartupdate/test/test.ts

15 lines
391 B
TypeScript
Raw Normal View History

import { expect, tap } from '@pushrocks/tapbundle';
import * as smartupdate from '../ts/index';
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 () => {
2019-09-06 11:58:17 +00:00
await testSmartUpdate.check('lodash', '1.0.5');
});
2017-08-15 17:29:18 +00:00
tap.start();