diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/package.json | 3 | ||||
-rw-r--r-- | ui/test/components/center.js | 12 |
2 files changed, 11 insertions, 4 deletions
diff --git a/ui/package.json b/ui/package.json index 4749b98..8a95f4c 100644 --- a/ui/package.json +++ b/ui/package.json @@ -6,7 +6,8 @@ "homepage": "https://bitmask.net", "repository": "https://leap.se/git/bitmask_client.git", "dependencies": { - "file-loader": "^0.11.1" + "file-loader": "^0.11.1", + "prop-types": "^15.5.10" }, "devDependencies": { "babel": "^6.5.2", diff --git a/ui/test/components/center.js b/ui/test/components/center.js index e9242e7..7853481 100644 --- a/ui/test/components/center.js +++ b/ui/test/components/center.js @@ -12,7 +12,9 @@ describe('Center Component', () => { it('has reasonable defaults', () => { const center = shallow( <Center> - test + <span> + test + </span> </Center> ) @@ -24,7 +26,9 @@ describe('Center Component', () => { it('has a width parameter on the inner div', () => { const center = shallow( <Center width="10"> - test + <span> + test + </span> </Center> ) @@ -34,7 +38,9 @@ describe('Center Component', () => { it('sets direction parameter in the class name', () => { const center = shallow( <Center direction="vertically"> - test + <span> + test + </span> </Center> ) |