summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Van Doorn <vandoorn.nick@gmail.com>2019-04-02 15:48:12 -0700
committerNick Van Doorn <vandoorn.nick@gmail.com>2019-04-02 15:48:12 -0700
commit91262718093924a9bd33b5f51f6e0b970077151c (patch)
treedce3fa3c0961e21e1fc35d16676f479a60ce2f62
parent88258a0f4bd1d1b980a1c2757e7fce932968215a (diff)
(bug) Import react in test
-rw-r--r--src/use-sunlight.test.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/use-sunlight.test.js b/src/use-sunlight.test.js
index a4f4719..e5708f2 100644
--- a/src/use-sunlight.test.js
+++ b/src/use-sunlight.test.js
@@ -1,4 +1,9 @@
import { computeLightLevel } from './use-sunlight'
+// TODO figure out why this is required
+// (I'm assuming some transpiler magic
+// makes this "required")
+// eslint-disable-next-line
+import React from 'react'
// Test the calculations used in the hook.
// Not sure if it's worth testing the public hook