Skip to content

Commit

Permalink
some debug
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ocean committed Jul 15, 2024
1 parent 970c526 commit c7f6011
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/integration/logs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,14 @@ describe('LogDatabase CRUD', () => {

// Retrieve the latest log entry
const logs = await database.logs.retrieveMultipleLogs(startTime, endTime, 1)
console.log('logs are: ', logs)

expect(logs?.length).to.equal(1)
expect(logs?.[0].id).to.equal(String(Number(logId) + 1))
expect(logs?.[0].level).to.equal(newLogEntry.level)
expect(logs?.[0].message).to.equal(newLogEntry.message)
expect(logs?.[0].moduleName).to.equal('HTTP')
console.log('end debug')
})

it('should save a log in the database when a log.logMessage is called', async () => {
Expand Down

0 comments on commit c7f6011

Please sign in to comment.