diff --git a/test/13.js b/test/13.js index 1fd37fd..aa7c067 100644 --- a/test/13.js +++ b/test/13.js @@ -1,6 +1,6 @@ const expect = require('chai').expect; let solution = require('../solutions/13').solution; - solution2 = require('../solutions/13').solution2; +let solution2 = require('../solutions/13').solution2; describe('reverse String', () => { it('should return true if input string is a palindrome', () => { expect(solution("racecar")).to.equal(true); diff --git a/test/31.js b/test/31.js index ccd624f..9ebe7c5 100644 --- a/test/31.js +++ b/test/31.js @@ -20,19 +20,19 @@ describe('longest string in an array', () => { it('the longest string in [just] is just', () => { expect(solution(['just'])).eql('just'); }); - it.only('the longest string in [hi,hello,hola] is hello', () => { + it('the longest string in [hi,hello,hola] is hello', () => { expect(solution1(['hi','hello','hola'])).eql('hello'); }) - it.only('the longest string in [is, whether, approximately] is approximately', () => { + it('the longest string in [is, whether, approximately] is approximately', () => { expect(solution1(['is','whether','approximately'])).eql('approximately'); }) - it.only('the longest string in [wait,see,us] is wait', () => { + it('the longest string in [wait,see,us] is wait', () => { expect(solution1(['wait','see','us'])).eql('wait'); }) - it.only('the longest string in [shout,basic,lead] is shout', () => { + it('the longest string in [shout,basic,lead] is shout', () => { expect(solution1(['shout','basic','lead'])).eql('shout'); }) - it.only('the longest string in [just] is just', () => { + it('the longest string in [just] is just', () => { expect(solution1(['just'])).eql('just'); }) }); diff --git a/test/32.js b/test/32.js index 9fad46d..946aec9 100644 --- a/test/32.js +++ b/test/32.js @@ -2,7 +2,7 @@ const expect = require('chai').expect; let solution = require('../solutions/32').solution; describe('Finding singleton in an array', () =>{ - it.only('should return singleton in an array', () =>{ + it('should return singleton in an array', () =>{ expect(solution([1,2,3,3,1,4])).to.eql([2, 4]); }); });