Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe('Is it symmetric', () => {
- it('Should be an array', () => {
- let returnValue = isSymmetric('21212');
- expect(returnValue).to.equal(false);
- });
- it('Should return equal', () => {
- let returnValue = isSymmetric(['a', 'b', 'a']);
- expect(returnValue).to.equal(true);
- });
- it('Should have array as an argument', () => {
- let returnValue = isSymmetric();
- expect(returnValue).to.equal(false);
- });
- it('Should have array as an argument2', () => {
- let returnValue = isSymmetric('sdada');
- expect(returnValue).to.equal(false);
- });
- it('Should have array as an argument3', () => {
- let returnValue = isSymmetric(213123);
- expect(returnValue).to.equal(false);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement