Skip to content

1.0: Mocking (#7)

Choose a tag to compare

@marijnschilling marijnschilling released this 15 Aug 08:35
· 28 commits to master since this release
* Add test for mocking

* Create a mock teapot

* Failing test

* [WIP] Add json file

* Return mocked response from json file

* Load bundle from test target

* remove testable import

* Make the class open

* make the init public

* [WIP] Add filename to error

* Cealnup and get error enum to be recognized

* Don't do async testing, the whole point of mocks is that its sync

* Make test for invalid json error

* And discover that im using the wrong name for it!

* Swift format.

* Add error description to error

* Add documentation

* Update tests

* Implement feedback