fix(core): update
This commit is contained in:
@ -2,23 +2,21 @@ import { expect, tap } from '@pushrocks/tapbundle';
|
||||
import { Qenv } from '@pushrocks/qenv';
|
||||
import * as elasticsearch from '../ts/index.js';
|
||||
|
||||
const testQenv = new Qenv('./', './.nogit/');
|
||||
|
||||
let testElasticLog: elasticsearch.ElasticSearch<any>;
|
||||
|
||||
tap.test('first test', async () => {
|
||||
testElasticLog = new elasticsearch.ElasticSearch({
|
||||
indexPrefix: 'smartlog',
|
||||
indexPrefix: 'testprefix',
|
||||
indexRetention: 7,
|
||||
node: testQenv.getEnvVarOnDemand('ELK_NODE'),
|
||||
user: '',
|
||||
pass: '',
|
||||
node: 'http://localhost:9200',
|
||||
user: 'elastic',
|
||||
pass: 'YourPassword'
|
||||
});
|
||||
expect(testElasticLog).toBeInstanceOf(elasticsearch.ElasticSearch);
|
||||
});
|
||||
|
||||
tap.skip.test('should send a message to Elasticsearch', async () => {
|
||||
testElasticLog.log({
|
||||
tap.test('should send a message to Elasticsearch', async () => {
|
||||
await testElasticLog.log({
|
||||
timestamp: Date.now(),
|
||||
type: 'increment',
|
||||
level: 'info',
|
||||
|
Reference in New Issue
Block a user