mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
17 lines
342 B
TypeScript
17 lines
342 B
TypeScript
import { square } from '.';
|
|
|
|
describe('square', () => {
|
|
beforeEach(() => {
|
|
console.log('this happens before each test');
|
|
});
|
|
|
|
afterEach(() => {
|
|
console.log('this happens after each test');
|
|
});
|
|
|
|
it('should be able to give the square of two numbers', () => {
|
|
console.log('test');
|
|
expect(square(5)).toBe(25);
|
|
});
|
|
});
|