Skip to content

Commit

Permalink
Merge pull request #13 from nna-dev/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
NotWoods authored Mar 24, 2024
2 parents 8b83e86 + faaac7d commit e879cc5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/docs/mocking/static.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ Despite the name, object mocks behave more like [spies](./spy.md). If a method i

```kotlin
class Calculator1 {
fun add(a: Int, b: Int) {
fun add(a: Int, b: Int): Int {
return a + b
}
}

object Calculator2 {
fun add(a: Int, b: Int) {
fun add(a: Int, b: Int): Int {
return a + b
}
}
Expand Down Expand Up @@ -84,7 +84,7 @@ If you'd like to revert back to the real object, you can use the `unmockkObject`

```kotlin
object Calculator {
fun add(a: Int, b: Int) {
fun add(a: Int, b: Int): Int {
return a + b
}
}
Expand Down

0 comments on commit e879cc5

Please sign in to comment.