2018-09-02 10:00:52 +00:00
|
|
|
import { expect, tap } from '@pushrocks/tapbundle';
|
2018-05-22 13:49:26 +00:00
|
|
|
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');
|
2018-05-22 13:49:26 +00:00
|
|
|
});
|
2017-08-15 17:29:18 +00:00
|
|
|
|
2018-05-22 13:49:26 +00:00
|
|
|
tap.start();
|