fix(core): update

This commit is contained in:
Philipp Kunz 2022-03-07 22:07:59 +01:00
parent dac95baa8a
commit 9ad94d9e6b
3 changed files with 24592 additions and 1861 deletions

26408
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -13,17 +13,17 @@
"format": "(gitzone format)" "format": "(gitzone format)"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.24", "@gitzone/tsbuild": "^2.1.29",
"@gitzone/tstest": "^1.0.33", "@gitzone/tstest": "^1.0.64",
"@pushrocks/tapbundle": "^3.2.1", "@pushrocks/tapbundle": "^4.0.8",
"@types/node": "^14.0.11", "@types/node": "^17.0.21",
"tslint": "^6.1.2", "tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0" "tslint-config-prettier": "^1.18.0"
}, },
"dependencies": { "dependencies": {
"@pushrocks/smarthash": "^2.1.6", "@pushrocks/smarthash": "^2.1.10",
"@pushrocks/smartlog": "^2.0.24", "@pushrocks/smartlog": "^2.0.44",
"@pushrocks/smartlog-interfaces": "^2.0.15" "@pushrocks/smartlog-interfaces": "^2.0.23"
}, },
"files": [ "files": [
"ts/**/*", "ts/**/*",

View File

@ -1,11 +1,14 @@
import { expect, tap } from '@pushrocks/tapbundle'; import { expect, expectAsync, tap } from '@pushrocks/tapbundle';
import * as smartlog from '@pushrocks/smartlog'; import * as smartlog from '@pushrocks/smartlog';
import * as smarthash from '@pushrocks/smarthash'; import * as smarthash from '@pushrocks/smarthash';
import * as smartlogReceiver from '../ts/index'; import * as smartlogReceiver from '../ts/index';
let testReceiver: smartlogReceiver.SmartlogReceiver; let testReceiver: smartlogReceiver.SmartlogReceiver;
let testSmartlog = smartlog.defaultLogger; let testSmartlog = new smartlog.Smartlog({
logContext: null,
minimumLogLevel: 'debug'
});
testSmartlog.enableConsole(); testSmartlog.enableConsole();
tap.test('should create a valid SmartlogReceiver', async () => { tap.test('should create a valid SmartlogReceiver', async () => {
@ -16,7 +19,7 @@ tap.test('should create a valid SmartlogReceiver', async () => {
return true; return true;
} }
}); });
expect(testReceiver).to.be.instanceof(smartlogReceiver.SmartlogReceiver); expect(testReceiver).toBeInstanceOf(smartlogReceiver.SmartlogReceiver);
}); });
tap.test('should receive a message', async () => { tap.test('should receive a message', async () => {