We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68dd861 commit d7517b2Copy full SHA for d7517b2
packages/relay/tests/lib/debug.spec.ts
@@ -670,7 +670,9 @@ describe('Debug API Test Suite', async function () {
670
expect(result[0]).to.have.property('to', null);
671
expect(result[0]).to.have.property('input', '0x608060405234801561001057600080fd5b50');
672
expect(result[0]).to.have.property('output', '0x');
673
- expect(getContractSpy.called).to.be.false;
+ // Ensure getContract was never invoked with a null/undefined id (i.e., for 'to')
674
+ const calledWithNullId = getContractSpy.getCalls().some((c) => c.args[0] == null);
675
+ expect(calledWithNullId).to.be.false;
676
getContractSpy.restore();
677
});
678
0 commit comments