Skip to content

Commit

Permalink
test: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Apr 11, 2023
1 parent bc90db8 commit 64fa81d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/consola.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,13 @@ describe("consola", () => {

const consola = createConsola({
throttle: 100,
level: LogLevels.info,
reporters: [TestReporter],
});
for (let i = 0; i < 10; i++) {
consola.log("SPAM");
}
await wait(200);
await wait(300);
expect(logs.length).toBe(7);
// 6 + Last one indicating it repeated 4
expect(logs[logs.length - 1].args).toEqual(["SPAM", "(repeated 4 times)"]);
Expand Down

0 comments on commit 64fa81d

Please sign in to comment.