Skip to content

Instantly share code, notes, and snippets.

@jtenner
Created May 22, 2019 14:31
Show Gist options
  • Save jtenner/4ba6f6ce53bd9b0e79662c2e3776dc1e to your computer and use it in GitHub Desktop.
Save jtenner/4ba6f6ce53bd9b0e79662c2e3776dc1e to your computer and use it in GitHub Desktop.
let myFoo: Foo = new Foo();
describe("Foo", (): void => {
describe("#add()", (): void => {
// Reads like: Foo#add() should add two integers togehter
it("should add two integers together", (): void => {
expect<i32>(myFoo.add(19, 23)).toBe(42, "19 + 23 should be 42");
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment