Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase coverage by checking errors even when
save
method doesn't …
…throw an error. If the save method doesn't throw an error, the catch block is never executed, so the error assertion inside the catch block wouldn't execute. To ensure the error assertions always run, we need to move it outside the catch block.
- Loading branch information