fix(core): update

This commit is contained in:
2023-08-01 12:24:22 +02:00
parent 2a595a1a9a
commit 30cbc05aa2
7 changed files with 82 additions and 22 deletions

0
test/00tapwrap.ts Normal file
View File

View File

@ -2,10 +2,10 @@ import { expect, tap } from '@pushrocks/tapbundle';
import { Qenv } from '@pushrocks/qenv';
import * as elasticsearch from '../ts/index.js';
let testElasticLog: elasticsearch.ElasticSearch<any>;
let testElasticLog: elasticsearch.ElsSmartlogDestination<any>;
tap.test('first test', async () => {
testElasticLog = new elasticsearch.ElasticSearch({
testElasticLog = new elasticsearch.ElsSmartlogDestination({
indexPrefix: 'testprefix',
indexRetention: 7,
node: 'http://localhost:9200',
@ -14,7 +14,7 @@ tap.test('first test', async () => {
password: 'YourPassword'
}
});
expect(testElasticLog).toBeInstanceOf(elasticsearch.ElasticSearch);
expect(testElasticLog).toBeInstanceOf(elasticsearch.ElsSmartlogDestination);
});
tap.test('should send a message to Elasticsearch', async () => {