fix(core): update
This commit is contained in:
11
test/test.ts
11
test/test.ts
@ -1,6 +1,6 @@
|
||||
import { expect, tap } from '@pushrocks/tapbundle';
|
||||
import { Qenv } from '@pushrocks/qenv';
|
||||
import * as elasticsearch from '../ts/index';
|
||||
import * as elasticsearch from '../ts/index.js';
|
||||
|
||||
const testQenv = new Qenv('./', './.nogit/');
|
||||
|
||||
@ -12,9 +12,9 @@ tap.test('first test', async () => {
|
||||
indexRetention: 7,
|
||||
domain: testQenv.getEnvVarOnDemand('ELK_DOMAIN'),
|
||||
port: parseInt(testQenv.getEnvVarOnDemand('ELK_PORT'), 10),
|
||||
ssl: true
|
||||
ssl: true,
|
||||
});
|
||||
expect(testElasticLog).to.be.instanceOf(elasticsearch.ElasticSearch);
|
||||
expect(testElasticLog).toBeInstanceOf(elasticsearch.ElasticSearch);
|
||||
});
|
||||
|
||||
tap.test('should send a message to Elasticsearch', async () => {
|
||||
@ -28,9 +28,10 @@ tap.test('should send a message to Elasticsearch', async () => {
|
||||
containerName: 'testcontainer',
|
||||
environment: 'test',
|
||||
runtime: 'node',
|
||||
zone: 'ship.zone'
|
||||
zone: 'ship.zone',
|
||||
},
|
||||
message: 'GET https://myroute.to.a.cool.destination/sorare?hello=there'
|
||||
message: 'GET https://myroute.to.a.cool.destination/sorare?hello=there',
|
||||
correlation: null,
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user