Skip to content

Instantly share code, notes, and snippets.

@alanbsmith
Created January 15, 2018 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alanbsmith/3e3354840dc4b091a43931a74ad61223 to your computer and use it in GitHub Desktop.
Save alanbsmith/3e3354840dc4b091a43931a74ad61223 to your computer and use it in GitHub Desktop.
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