A small version of Jest
Read the blog here.
.toBe()
.toThrow()
.toBeTruthy()
.toBeFalsy()
.toBeNull()
const random = fn((p1: string, p2: string) => p1);
const winner = random('Winner', 'Loser');
expect(winner).toBe('Winner');
.spyOn()
A small version of Jest
Read the blog here.
.toBe()
.toThrow()
.toBeTruthy()
.toBeFalsy()
.toBeNull()
const random = fn((p1: string, p2: string) => p1);
const winner = random('Winner', 'Loser');
expect(winner).toBe('Winner');
.spyOn()