-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
108 additions
and
1,574 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"**/*.ts?(x)": ["yarn pretty", "yarn lint"] | ||
"**/*.ts?(x)": ["yarn pretty", "yarn lint", "yarn test"] | ||
} |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { formatCardNumber } from '../shared/formatCardNumber'; | ||
|
||
describe('formatCardNumber tests', () => { | ||
it('should apply mask credit card number 5363 5085 9979 9238', () => { | ||
const parsed = formatCardNumber('53 63 5 085 99 79 9238'); | ||
expect(parsed).toBe('5363 5085 9979 9238'); | ||
}); | ||
it('should apply mask credit card number 4024 0071 0360 4194', () => { | ||
const parsed = formatCardNumber('4024007103604194'); | ||
expect(parsed).toBe('4024 0071 0360 4194'); | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"allowSyntheticDefaultImports": true, | ||
"esModuleInterop": true, | ||
"isolatedModules": true, | ||
"jsx": "react-native", | ||
"lib": ["esnext"], | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"noEmit": true, | ||
"strict": true, | ||
"target": "esnext" | ||
}, | ||
"include": [ | ||
"src/**/*.test.ts", | ||
"babel.config.js", | ||
"jest.config.js" | ||
], | ||
"exclude": [ | ||
"node_modules", | ||
"babel.config.js", | ||
"metro.config.js", | ||
"jest.config.js", | ||
"dist", | ||
"documentation" | ||
] | ||
} |
Oops, something went wrong.