fix(core): update

This commit is contained in:
2023-07-12 15:09:53 +02:00
parent 39408d9832
commit fef954c423
10 changed files with 1637 additions and 15159 deletions

View File

@ -1,5 +1,5 @@
import { tap, expect } from '@pushrocks/tapbundle';
import { Subject } from 'rxjs';
import { tap, expect } from '@push.rocks/tapbundle';
import * as smartrx from '@push.rocks/smartrx';
import * as smartcli from '../ts/index.js';
@ -11,8 +11,8 @@ tap.test('should create a new Smartcli', async () => {
tap.test('should add an command', async (toolsArg) => {
const done = toolsArg.defer();
const smartCliTestObject = new smartcli.Smartcli();
const awesomeCommandSubject = smartCliTestObject.addCommand('awesome')
expect(awesomeCommandSubject).toBeInstanceOf(Subject);
const awesomeCommandSubject = smartCliTestObject.addCommand('awesome');
expect(awesomeCommandSubject).toBeInstanceOf(smartrx.rxjs.Subject);
awesomeCommandSubject.subscribe(() => {
done.resolve();
});
@ -25,7 +25,7 @@ tap.test('should add an command', async (toolsArg) => {
tap.test('should start parsing a standardTask', async () => {
const smartCliTestObject = new smartcli.Smartcli();
expect(smartCliTestObject.standardCommand()).toBeInstanceOf(Subject);
expect(smartCliTestObject.standardCommand()).toBeInstanceOf(smartrx.rxjs.Subject);
});
let hasExecuted: boolean = false;