Skip to content

- Changed the stub method to resolvesArg#218

Open
amit-singhs wants to merge 2 commits intoPermissionless-Software-Foundation:masterfrom
amit-singhs:master
Open

- Changed the stub method to resolvesArg#218
amit-singhs wants to merge 2 commits intoPermissionless-Software-Foundation:masterfrom
amit-singhs:master

Conversation

@amit-singhs
Copy link
Copy Markdown

The proper way to use an identity function as a stub for a promise in sinon.js is to use resolvesArg(0). Because of this the tokens attribute was set to an anonymous function instead of the expected value.

And the funny thing is the test was passing because it was only checking the length attribute to be one, which would also be true for an anonymous function.

@amit-singhs
Copy link
Copy Markdown
Author

I'm currently working on a psf-slp-indexer interface contract related bug. The PR for that is incoming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant