Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shukriadams committed Jun 21, 2021
1 parent d7ce48a commit 1ad4a59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/lib/history/getLastEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('lib/history/getLastEvent', async()=>{
})

ctx.inject.object('madscience-fsUtils', {
readFilesInDir: ()=> [{}] // return 1 event
readFilesInDir: ()=> ['status.json', 'item.json'] // return 2 events, 1 will always
})

const event = await history.getLastEvent('test')
Expand Down Expand Up @@ -45,7 +45,7 @@ describe('lib/history/getLastEvent', async()=>{
ctx.assert.null(event)
})

it('lib/history/getLastEvent::unhappy read json throws', async()=>{
it('lib/history/getLastEvent::unhappy read json throws error', async()=>{
const ctx = require(_$t+'context'),
history = ctx.clone(require(_$+'lib/history'))

Expand All @@ -55,7 +55,7 @@ describe('lib/history/getLastEvent', async()=>{
})

ctx.inject.object('madscience-fsUtils', {
readFilesInDir: ()=> [{}] // return 1 event
readFilesInDir: ()=> ['item.json'] // return 1 event
})

const event = await history.getLastEvent('test')
Expand Down

0 comments on commit 1ad4a59

Please sign in to comment.