janeirodigital / sai-js

Typescript library for Solid Application Interoperability
https://sai.js.org/
MIT License
8 stars 7 forks source link

Remove expects from mocked implementations #60

Open elf-pavlik opened 2 years ago

elf-pavlik commented 2 years ago

Instead use expectToBeCalledWith.

When expect in mocked implementation fails it throws an error similar if the real implementation has thrown error.