We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 699c0e5 commit 4ba6892Copy full SHA for 4ba6892
docs/test-doubles.md
@@ -41,34 +41,6 @@ EOF
41
```
42
:::
43
44
-## unmock
45
-
46
-> `unmock "function"`
47
48
-Undo the previous overridden behavior of a callable using mock.
49
50
-::: code-group
51
-```bash [Example]
52
-function test_example() {
53
- function code() {
54
- ps a | grep bash
55
- }
56
57
- mock ps<<EOF
58
-PID TTY TIME CMD
59
-13525 pts/7 00:00:01 bash
60
-24162 pts/7 00:00:00 ps
61
-EOF
62
63
- # At this point, ps will return the mocked value above
64
- assert_equals "13525 pts/7 00:00:01 bash" "$(code)"
65
66
- # From now on, ps will have the original behaviour again
67
- unmock ps
68
-}
69
-```
70
-:::
71
72
## spy
73
> `spy "function"`
74
0 commit comments