6
、そこに内部console.info(arguments)
を追加、取得されたものは何でもconsole.log
私を示すだろう。バージョン2xx
でSinonスタブcallsFake引数
私はcallsFake
に切り替え:
sinon.stub(console, 'log').callsFake(() => {
// Check what the arguments holds
// And either console.info it or do nothing
});
をこの今長い作品。 console.info(arguments)
にはバザー値があり、console.log
が何を通過しているかは関係ありません。
何が間違っているのですか?
(リターンでcallsFakeを交換してみてください) –