-
-
Save alanbsmith/3e3354840dc4b091a43931a74ad61223 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
validatePhone | |
✓ should return true for a valid phone number (1ms) | |
✓ should ignore spaces between numbers (1ms) | |
✓ should ignore parentheses between numbers | |
✓ should ignore hyphens between numbers | |
✓ should ignore periods between numbers | |
✓ should return false if letters are present | |
Test Suites: 1 passed, 1 total | |
Tests: 7 passed, 7 total | |
Snapshots: 0 total | |
Time: 0.18s, estimated 1s | |
Ran all test suites related to changed files. | |
------------------|----------|----------|----------|----------|----------------| | |
File | % Stmts | % Branch | % Funcs | % Lines |Uncovered Lines | | |
------------------|----------|----------|----------|----------|----------------| | |
All files | 100 | 100 | 100 | 100 | | | |
validatePhone.js | 100 | 100 | 100 | 100 | | | |
------------------|----------|----------|----------|----------|----------------| |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment