Advertisement
ErolKZ

Untitled

Feb 10th, 2022
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. describe('Is it symmetric', () => {
  2.  
  3. it('Should be an array', () => {
  4.  
  5. let returnValue = isSymmetric('21212');
  6.  
  7. expect(returnValue).to.equal(false);
  8.  
  9. });
  10.  
  11.  
  12. it('Should return equal', () => {
  13.  
  14. let returnValue = isSymmetric(['a', 'b', 'a']);
  15.  
  16. expect(returnValue).to.equal(true);
  17.  
  18. });
  19.  
  20.  
  21. it('Should have array as an argument', () => {
  22.  
  23. let returnValue = isSymmetric();
  24.  
  25. expect(returnValue).to.equal(false);
  26.  
  27. });
  28.  
  29.  
  30. it('Should have array as an argument2', () => {
  31.  
  32. let returnValue = isSymmetric('sdada');
  33.  
  34. expect(returnValue).to.equal(false);
  35.  
  36. });
  37.  
  38.  
  39. it('Should have array as an argument3', () => {
  40.  
  41. let returnValue = isSymmetric(213123);
  42.  
  43. expect(returnValue).to.equal(false);
  44.  
  45. });
  46.  
  47.  
  48. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement