File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
exercises/practice/phone-number Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments