Skip to content

Commit

Permalink
check module name as well
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ocean committed Jul 16, 2024
1 parent d784853 commit 1eae945
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/test/integration/logs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,12 @@ describe('LogDatabase CRUD', () => {
const endTime = new Date() // current time

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

expect(logs?.length).to.equal(1)
Expand Down Expand Up @@ -128,7 +133,12 @@ describe('LogDatabase CRUD', () => {
const endTime = new Date() // current time

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

expect(logs?.length).to.equal(1)
Expand Down

0 comments on commit 1eae945

Please sign in to comment.