Closed ebebbington closed 2 years ago
closes #145
problem was, the class was initialised with a default prop, so mock.Game should return it. Instead it was returning undefined:
mock.Game
Before
const mock = Mock(PlayersEngine).create() mock.Game // undefined mock.Game = "hello" mock.game // "hello"
After
const mock = Mock(PlayersEngine).create() mock.Game // "default game" mock.Game = "hello" mock.game // "hello"
LGTM except deno fmt doesn't like it
closes #145
problem was, the class was initialised with a default prop, so
mock.Game
should return it. Instead it was returning undefined:Before
After