Created
July 2, 2017 10:46
-
-
Save stevermeister/7c2cd9ce96cb4e74378c97520224e4f3 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
it('should throw an error', () => { | |
const pipe = new SexPipe(); | |
expect( function(){ pipe.transform(2); } ).toThrow(new Error('Input should be only 0 or 1')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment