You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it('should throw an exception for non-numerical data', ()=> { expect(factorsOf('twelve').toThrow(); });
is incorrect.
It should be: it('should throw an axception for non-numerical data', () => { expect( () => factorsOf('twelve').toThrow()); });
The text was updated successfully, but these errors were encountered:
Tests exceptions with Jest (on node.js):
it('should throw an exception for non-numerical data', ()=> { expect(factorsOf('twelve').toThrow(); });
is incorrect.
It should be:
it('should throw an axception for non-numerical data', () => { expect( () => factorsOf('twelve').toThrow()); });
The text was updated successfully, but these errors were encountered: