David Bomba 6a390aedbc
Configure Jest Testing Framework for Typescript (#2519)
* Set JEST for Typescript testing

* tests
2018-11-26 10:28:22 +11:00

14 lines
285 B
TypeScript

import { sum } from "./math";
describe("This is a simple test", () => {
test("Check the sum of 0 + 0", () => {
expect(sum(0,0)).toBe(0);
});
});
describe("This is a simple test", () => {
test("Check the sum of 1 + 2", () => {
expect(sum(1, 2)).toBe(3);
});
});