fix(core): update

This commit is contained in:
2019-09-06 13:58:17 +02:00
parent 94c22b65e5
commit 335e9160a6
3 changed files with 119 additions and 105 deletions

View File

@ -1,8 +1,14 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as smartupdate from '../ts/index';
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 () => {
await smartupdate.standardHandler.check('lodash', '1.0.5');
await testSmartUpdate.check('lodash', '1.0.5');
});
tap.start();