8000 added a test and changed an old one · SanaWalla/javascript-exercises@4d82ea1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4d82ea1

Browse files
authored
added a test and changed an old one
The second test would originally test if it works with upper-case letters and punctuation. but the description of the test is "works with punctuation". I think it is better to either put both in the description or make a new test that solely tests each different thing.
1 parent 888383a commit 4d82ea1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

palindromes/palindromes.spec.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ describe('palindromes', function() {
44
it('works with single words', function() {
55
expect(palindromes('racecar')).toEqual(true);
66
});
7-
xit('works with punctuation', function() {
7+
xit('works with punctuation ', function() {
8+
expect(palindromes('racecar!')).toEqual(true);
9+
});
10+
xit('works with upper-case letters ', function() {
811
expect(palindromes('Racecar!')).toEqual(true);
912
});
1013
xit('works with multiple words', function() {

0 commit comments

Comments
 (0)
0