Add logjam example

This commit is contained in:
Steve Kinney
2024-09-30 11:59:33 -06:00
parent dc318c10ee
commit 0177b1be0d
6 changed files with 71 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
import { expect, it, vi, beforeEach, afterEach, describe } from 'vitest';
import { log } from './log';
describe.todo('logger', () => {
it('logs to the console in development mode', () => {
const spy = vi.spyOn(console, 'log');
log('Hello, world!');
expect(spy).toHaveBeenCalledWith('Hello, world!');
spy.mockRestore();
});
});