Skip to content

Commit

Permalink
feat: Updated ./test/custom-labels-lines.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] committed Apr 9, 2024
1 parent 64adbf7 commit cab7928
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/custom-labels-lines.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ describe('Integration tests', function () {
logger.debug({ message: testMessage, labels: { customLabel: testLabel } })
expect(lokiTransport.batcher.batch.streams.length).toBe(1)
expect(
lokiTransport.batcher.batch.streams[0]
).toEqual({
labels: { level: 'debug', module: 'name', app: 'appname', customLabel: testLabel },
entries: [{
line: `[name] ${testMessage}`,
ts: Date.now()
}]
})
lokiTransport.batcher.batch.streams[0].labels
).toEqual(`{level="debug", module="name", app="appname", customLabel="testLabel"}`)
expect(
lokiTransport.batcher.batch.streams[0].entries[0].line
).toEqual(`[name] ${testMessage}`)
expect(
typeof lokiTransport.batcher.batch.streams[0].entries[0].ts
).toBe('number')
})
})

0 comments on commit cab7928

Please sign in to comment.