summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorSimon Fondrie-Teitler <simonft@riseup.net>2017-05-19 19:05:37 -0400
committerKali Kaneko (leap communications) <kali@leap.se>2017-05-22 13:46:46 +0200
commit96462b1798f4269c4162df1e20e2f4da6dacc8e8 (patch)
tree5b31d3648c51c8ac4096146024b746a047023edf /ui
parentd2f37b7fcfda0e03ff1bd62fc91040258e224727 (diff)
add prop-types to requirements
Diffstat (limited to 'ui')
-rw-r--r--ui/package.json3
-rw-r--r--ui/test/components/center.js12
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>
)