-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing React Native specific end props
- Loading branch information
1 parent
bff3a2c
commit 64f0fb1
Showing
3 changed files
with
50 additions
and
0 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
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,9 +1,23 @@ | ||
import { allProps, allCSS2RNProps } from "./index"; | ||
|
||
const uniq = function(arrArg) { | ||
return arrArg.filter(function(elem, pos, arr) { | ||
return arr.indexOf(elem) == pos; | ||
}); | ||
}; | ||
|
||
it("should have a flat array of all known React Native props", () => { | ||
expect(allProps).toMatchSnapshot(); | ||
}); | ||
|
||
it("should not have duplicate props in all known React Native props", () => { | ||
expect(allProps).toEqual(uniq(allProps)); | ||
}); | ||
|
||
it("should have a flat array of all known css-to-react-native props", () => { | ||
expect(allCSS2RNProps).toMatchSnapshot(); | ||
}); | ||
|
||
it("should not have duplicate props in all known css-to-react-native props", () => { | ||
expect(allCSS2RNProps).toEqual(uniq(allCSS2RNProps)); | ||
}); |