fix(core): update
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
import { tap, expect } from '@pushrocks/tapbundle';
|
||||
import * as smartgit from '../ts/index';
|
||||
import * as smartgit from '../ts/index.js';
|
||||
|
||||
import * as smartpath from '@pushrocks/smartpath';
|
||||
const __dirname = smartpath.get.dirnameFromImportMetaUrl(import.meta.url);
|
||||
import * as path from 'path';
|
||||
|
||||
let testSmartgitInstance: smartgit.Smartgit;
|
||||
@ -10,7 +12,7 @@ const testRepoDirSmartfile = path.join(__dirname, '../.nogit/pushrocks_smartfile
|
||||
tap.test('should create a valid smartgit instance', async () => {
|
||||
testSmartgitInstance = new smartgit.Smartgit();
|
||||
await testSmartgitInstance.init();
|
||||
expect(testSmartgitInstance).to.be.instanceOf(smartgit.Smartgit);
|
||||
expect(testSmartgitInstance).toBeInstanceOf(smartgit.Smartgit);
|
||||
})
|
||||
|
||||
tap.test('should create a new repo at .nogit', async () => {
|
||||
|
Reference in New Issue
Block a user