chore(deps): update dependency mimic to v2
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
mimic (source) | dev | major |
~> 1.7 -> ~> 2.0
|
Release Notes
edgurgel/mimic (mimic)
v2.0.0
Breaking changes
The code below would call the original Calculator.add/2
when all expectations were fulfilled.
Calculator
|> expect(:add, fn _, _ -> :expected1 end)
|> expect(:add, fn _, _ -> :expected2 end)
assert Calculator.add(1, 1) == :expected1
assert Calculator.add(1, 1) == :expected2
assert Calculator.add(1, 1) == 2
Now with Mimic 2 this will raise:
Calculator
|> expect(:add, fn _, _ -> :expected1 end)
|> expect(:add, fn _, _ -> :expected2 end)
assert Calculator.add(1, 1) == :expected1
assert Calculator.add(1, 1) == :expected2
Calculator.add(1, 1)
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.