Guest User

Untitled

a guest
Apr 20th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. describe('prime numbers detector',function(){
  2.   it('avoids 1',function(){
  3.     expect(isPrime(1)).toBe(false);
  4.   });
  5.   it('detects 2',function(){
  6.     expect(isPrime(2)).toBe(true);
  7.   });
  8.   it('detects 3',function(){
  9.     expect(isPrime(3)).toBe(true);
  10.   });
  11.   it('avoids 4',function(){
  12.     expect(isPrime(4)).toBe(false);
  13.   });
  14. });
Add Comment
Please, Sign In to add comment