From 3950af87bd69f4e32a67d3f016f225f837eae9a3 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Wed, 3 Jun 2020 03:45:10 +0000 Subject: [PATCH] fix(core): update --- test/test.ts | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/test/test.ts b/test/test.ts index b23064a..d6ee664 100644 --- a/test/test.ts +++ b/test/test.ts @@ -55,7 +55,7 @@ tap.test('should send in order', async () => { i++; } - const testSmartlogMessage: ILogPackage = { + const testSmartlogMessage2: ILogPackage = { timestamp: Date.now(), type: 'log', level: 'warn', @@ -69,7 +69,23 @@ tap.test('should send in order', async () => { }, message: `this is an awesome log message sent by the tapbundle test #${i}` }; - testLogDnaAccount.sendSmartlogPackage(testSmartlogMessage); + testLogDnaAccount.sendSmartlogPackage(testSmartlogMessage2); + + const testSmartlogMessage3: ILogPackage = { + timestamp: Date.now(), + type: 'log', + level: 'error', + context: { + company: 'Lossless GmbH', + companyunit: 'lossless.cloud', + containerName: 'ci-mojoio-logdna', + environment: 'test', + runtime: 'node', + zone: 'shipzone' + }, + message: `this is an awesome log message sent by the tapbundle test #${i}` + }; + testLogDnaAccount.sendSmartlogPackage(testSmartlogMessage3); }); tap.start();