Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber committed Mar 22, 2023
1 parent d3b6c36 commit 1660045
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,8 @@ test('Activity', async t => {
['activity'],
{ env: { XDG_STATE_HOME } }
)
t.equal(
stdout,
'[3/14/2023, 10:38:14 AM] INFO beep boop'
)
t.match(stdout, '3/14/2023')
t.match(stdout, 'beep boop')
})

await t.test('Follow', async t => {
Expand All @@ -196,7 +194,8 @@ test('Activity', async t => {
'[3/14/2023, 10:38:14 AM] {"source":"Saturn","type":"info","message":"beep boop"}\n'
)
])
t.equal(data.toString(), '[3/14/2023, 10:38:14 AM] INFO beep boop\n')
t.match(data.toString(), '3/14/2023')
t.match(data.toString(), 'beep boop')
ps.kill()
}
})
Expand Down

0 comments on commit 1660045

Please sign in to comment.