Using nock to mock