Skip to content

Commit

Permalink
rejig docs and test slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddenton committed Aug 22, 2023
1 parent 6759031 commit 19fc19d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mock4k/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class AppleStoreTest {
@Test
fun `buy macbook in relaxed mode`() {
// relaxed mode returns null by default
val appleStore = AppleStore(object : Wallet by mock(MockMode.Relaxed) {})
val appleStore = AppleStore(mock(MockMode.Relaxed))
assertThat(appleStore.buyMacBook(), equalTo(null))
}

Expand Down
2 changes: 1 addition & 1 deletion mock4k/src/test/kotlin/dev/forkhandles/mock4k/MockTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class MockTest {

@Test
fun `relaxed mock call returns null`() {
val appleStore = AppleStore(object : Wallet by mock(Relaxed) {})
val appleStore = AppleStore(mock(Relaxed))
assertThat(appleStore.buyMacBook(), absent())
}

Expand Down

0 comments on commit 19fc19d

Please sign in to comment.