aboutsummaryrefslogtreecommitdiff
path: root/core/src/androidTest/kotlin/ca/allanwang/kau/Utils.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2020-02-23 13:02:25 -0800
committerAllan Wang <me@allanwang.ca>2020-02-23 13:02:25 -0800
commitd67d4a1204796377040a1769175d5798ce09408b (patch)
tree253eda7836828255e65bf1b22436346338c73ac0 /core/src/androidTest/kotlin/ca/allanwang/kau/Utils.kt
parentce0ae639188dad9ca212667c59131c04de1ed575 (diff)
downloadkau-d67d4a1204796377040a1769175d5798ce09408b.tar.gz
kau-d67d4a1204796377040a1769175d5798ce09408b.tar.bz2
kau-d67d4a1204796377040a1769175d5798ce09408b.zip
Fix kpref tests
Diffstat (limited to 'core/src/androidTest/kotlin/ca/allanwang/kau/Utils.kt')
-rw-r--r--core/src/androidTest/kotlin/ca/allanwang/kau/Utils.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/src/androidTest/kotlin/ca/allanwang/kau/Utils.kt b/core/src/androidTest/kotlin/ca/allanwang/kau/Utils.kt
new file mode 100644
index 0000000..33252d6
--- /dev/null
+++ b/core/src/androidTest/kotlin/ca/allanwang/kau/Utils.kt
@@ -0,0 +1,7 @@
+package ca.allanwang.kau
+
+import android.content.Context
+import androidx.test.platform.app.InstrumentationRegistry
+
+val context: Context
+ get() = InstrumentationRegistry.getInstrumentation().context \ No newline at end of file