-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from benhurott/develop
1.9.2
- Loading branch information
Showing
1,300 changed files
with
67 additions
and
80,015 deletions.
There are no files selected for viewing
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 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,5 @@ | ||
copy-to-test: | ||
rm -rf ../rn-test/react-native-masked-text | ||
npm run clean | ||
npm run build | ||
cp -R dist ../rn-test/react-native-masked-text |
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 |
---|---|---|
@@ -1,44 +1,52 @@ | ||
import { OnlyNumbersMask } from '../../lib/masks'; | ||
import { OnlyNumbersMask } from '../../lib/masks' | ||
|
||
test('getType results only-numbers', () => { | ||
var expected = 'only-numbers'; | ||
var received = OnlyNumbersMask.getType(); | ||
var expected = 'only-numbers' | ||
var received = OnlyNumbersMask.getType() | ||
|
||
expect(received).toBe(expected); | ||
}); | ||
expect(received).toBe(expected) | ||
}) | ||
|
||
test('abc123 results 123', () => { | ||
var mask = new OnlyNumbersMask(); | ||
var expected = '123'; | ||
var received = mask.getValue('abc123'); | ||
var mask = new OnlyNumbersMask() | ||
var expected = '123' | ||
var received = mask.getValue('abc123') | ||
|
||
expect(received).toBe(expected); | ||
}); | ||
expect(received).toBe(expected) | ||
}) | ||
|
||
test('1 results 1', () => { | ||
var mask = new OnlyNumbersMask(); | ||
var expected = '1'; | ||
var received = mask.getValue('1'); | ||
var mask = new OnlyNumbersMask() | ||
var expected = '1' | ||
var received = mask.getValue('1') | ||
|
||
expect(received).toBe(expected); | ||
}); | ||
expect(received).toBe(expected) | ||
}) | ||
|
||
test('abc results ', () => { | ||
var mask = new OnlyNumbersMask(); | ||
var expected = ''; | ||
var received = mask.getValue('abc'); | ||
var mask = new OnlyNumbersMask() | ||
var expected = '' | ||
var received = mask.getValue('abc') | ||
|
||
expect(received).toBe(expected); | ||
}); | ||
expect(received).toBe(expected) | ||
}) | ||
|
||
test('1 results 1 and raw value 1', () => { | ||
var mask = new OnlyNumbersMask(); | ||
var expected = '1'; | ||
var received = mask.getValue('1'); | ||
var mask = new OnlyNumbersMask() | ||
var expected = '1' | ||
var received = mask.getValue('1') | ||
|
||
var expectedRawValue = '1'; | ||
var receivedRawValue = mask.getRawValue(received); | ||
var expectedRawValue = '1' | ||
var receivedRawValue = mask.getRawValue(received) | ||
|
||
expect(received).toBe(expected); | ||
expect(receivedRawValue).toBe(expectedRawValue); | ||
}); | ||
expect(received).toBe(expected) | ||
expect(receivedRawValue).toBe(expectedRawValue) | ||
}) | ||
|
||
test('number value return correct masked value', () => { | ||
var mask = new OnlyNumbersMask() | ||
var expected = '1' | ||
var received = mask.getValue(1) | ||
|
||
expect(received).toBe(expected) | ||
}) |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-20.6 KB
android/.gradle/2.14.1/taskArtifacts/fileSnapshotsToTreeSnapshotsIndex.bin
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-22.9 KB
...14.1/tasks/_app_compileDebugJavaWithJavac/localClassSetAnalysis/localClassSetAnalysis.bin
Binary file not shown.
Binary file removed
BIN
-17 Bytes
...4.1/tasks/_app_compileDebugJavaWithJavac/localClassSetAnalysis/localClassSetAnalysis.lock
Binary file not shown.
Binary file removed
BIN
-21.7 KB
...ks/_app_compileDebugJavaWithJavac/localJarClasspathSnapshot/localJarClasspathSnapshot.bin
Binary file not shown.
Binary file removed
BIN
-17 Bytes
...s/_app_compileDebugJavaWithJavac/localJarClasspathSnapshot/localJarClasspathSnapshot.lock
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.