Skip to content

Commit d7517b2

Browse files
committed
fixed new test assertion
Signed-off-by: Simeon Nakov <[email protected]>
1 parent 68dd861 commit d7517b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/relay/tests/lib/debug.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,9 @@ describe('Debug API Test Suite', async function () {
670670
expect(result[0]).to.have.property('to', null);
671671
expect(result[0]).to.have.property('input', '0x608060405234801561001057600080fd5b50');
672672
expect(result[0]).to.have.property('output', '0x');
673-
expect(getContractSpy.called).to.be.false;
673+
// 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;
674676
getContractSpy.restore();
675677
});
676678
});

0 commit comments

Comments
 (0)