Created
May 22, 2019 14:54
-
-
Save jtenner/4f30006363862f18a81d87d275e618cd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let myFoo = new Foo(); | |
describe("Foo.divide()", (): void => { | |
throws("when dividing by zero", (): void => { | |
myFoo.divide(42, 0); | |
}, "Dividing by zero should throw an error."); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment