Skip to content

Commit

Permalink
Uncomment tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
mczernek committed Feb 27, 2020
1 parent 2065109 commit 4e27f3d
Show file tree
Hide file tree
Showing 3 changed files with 226 additions and 234 deletions.
9 changes: 4 additions & 5 deletions packages/expo-av/android/build.gradle
Expand Up @@ -73,11 +73,10 @@ if (new File(rootProject.projectDir.parentFile, 'package.json').exists()) {

dependencies {

// Uncomment to run unit tests
// implementation 'org.junit.jupiter:junit-jupiter-api:5.5.1'
// runtimeOnly "org.junit.jupiter:junit-jupiter-engine:5.5.1"
//
// implementation 'io.mockk:mockk:1.9'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.1'
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.5.1"

testImplementation 'io.mockk:mockk:1.9'

unimodule "unimodules-core"
unimodule "unimodules-permissions-interface"
Expand Down
Expand Up @@ -7,12 +7,6 @@ interface TimeMachine {
val time: Long
}

/**
* @mczernek: NOTE that this class has corresponding test suite. However, since I was unable to set
* them up correctly, in order to run them, you should uncomment dependencies in module's build.gradle,
* and contents of test class: at packages/expo-av/android/src/test/java/expo/modules/av/progress/ProgressLooperTest.kt
* Note, that this breaks client's build, so remember to comment it back.q
*/
typealias PlayerProgressListener = () -> Unit

class ProgressLooper(private val timeMachine: TimeMachine) {
Expand Down

0 comments on commit 4e27f3d

Please sign in to comment.