Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/13.js
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
10 changes: 5 additions & 5 deletions test/31.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
})
});
2 changes: 1 addition & 1 deletion test/32.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
});
});