Skip to content

Commit 94576a6

Browse files
committed
Update test file
1 parent a2fe798 commit 94576a6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

exercises/practice/phone-number/phone-number.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe('Phone Number', () => {
1717

1818
xtest('invalid when 9 digits', () => {
1919
expect(() => clean('123456789')).toThrow(
20-
new Error('Incorrect number of digits'),
20+
new Error('Must not be fewer than 10 digits'),
2121
);
2222
});
2323

@@ -37,18 +37,18 @@ describe('Phone Number', () => {
3737

3838
xtest('invalid when more than 11 digits', () => {
3939
expect(() => clean('321234567890')).toThrow(
40-
new Error('More than 11 digits'),
40+
new Error('Must not be greater than 11 digits'),
4141
);
4242
});
4343

4444
xtest('invalid with letters', () => {
45-
expect(() => clean('123-abc-7890')).toThrow(
45+
expect(() => clean('523-abc-7890')).toThrow(
4646
new Error('Letters not permitted'),
4747
);
4848
});
4949

5050
xtest('invalid with punctuations', () => {
51-
expect(() => clean('123-@:!-7890')).toThrow(
51+
expect(() => clean('523-@:!-7890')).toThrow(
5252
new Error('Punctuations not permitted'),
5353
);
5454
});

0 commit comments

Comments
 (0)