fix(core): update
This commit is contained in:
14
test/test.node.ts
Normal file
14
test/test.node.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { expect, tap } from '@git.zone/tstest/tapbundle';
|
||||
|
||||
import * as tools from '../ts/tools.install.js';
|
||||
|
||||
tap.test('should have install function exported', async () => {
|
||||
expect(typeof tools.install).toEqual('function');
|
||||
});
|
||||
|
||||
tap.test('should handle unknown package set', async () => {
|
||||
// This will just log a warning, not throw
|
||||
await tools.install('unknown');
|
||||
});
|
||||
|
||||
export default tap.start();
|
||||
@@ -1,9 +0,0 @@
|
||||
import { expect, tap } from '@pushrocks/tapbundle';
|
||||
|
||||
import * as tools from '../ts/tools.install';
|
||||
|
||||
tap.test("should install default list globally when parsed 'default' as argument", async () => {
|
||||
await tools.install('default');
|
||||
});
|
||||
|
||||
tap.start();
|
||||
Reference in New Issue
Block a user