Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ocean committed Jul 16, 2024
1 parent 0437247 commit da16340
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/integration/logs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ describe('LogDatabase CRUD', () => {
const logs = await database.logs.retrieveMultipleLogs(startTime, endTime, 1)

expect(logs?.length).to.equal(1)
expect(logs?.[0].id).to.equal(String(Number(logId) + 2))
expect(Number(logs?.[0].id)).to.greaterThan(Number(logId))
expect(logs?.[0].level).to.equal(newLogEntry.level)
expect(logs?.[0].message).to.equal(newLogEntry.message)
expect(logs?.[0].moduleName).to.equal('HTTP')
Expand Down Expand Up @@ -130,7 +130,7 @@ describe('LogDatabase CRUD', () => {
const logs = await database.logs.retrieveMultipleLogs(startTime, endTime, 1)

expect(logs?.length).to.equal(1)
expect(logs?.[0].id).to.equal(String(Number(logId) + 3))
expect(Number(logs?.[0].id)).to.greaterThan(Number(logId))
expect(logs?.[0].level).to.equal(newLogEntry.level)
assert(logs?.[0].message)
expect(logs?.[0].moduleName).to.equal('HTTP')
Expand Down

0 comments on commit da16340

Please sign in to comment.