Advertisement
ilianrusev

Untitled

Jan 27th, 2022
20
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. describe('tests', () => {
  2. it('passing test', () => {
  3. expect(isSymmetric([1, 2, 2, 1])).to.be.true;
  4. })
  5. it('passing test2', () => {
  6. expect(isSymmetric(['1', '2', '2', '1'])).to.be.true;
  7. })
  8.  
  9. it('not symmetric', () => {
  10. expect(isSymmetric([1, 2, 2, 2])).to.be.false;
  11. })
  12. it('input is not an array', () => {
  13. expect(isSymmetric(1, 2, 2, 1)).to.be.false;
  14. })
  15.  
  16. it('input is not symetric', () => {
  17. expect(isSymmetric([1, 2, 2, '1'])).to.be.false;
  18. })
  19.  
  20. })
Advertisement
RAW Paste Data Copied
Advertisement