Skip to content
This repository was archived by the owner on Jul 15, 2026. It is now read-only.

Suspicious Undefined Expectation - #1

Open
elissonmichael wants to merge 1 commit into
yangricardo:mainfrom
elissonmichael:main
Open

Suspicious Undefined Expectation#1
elissonmichael wants to merge 1 commit into
yangricardo:mainfrom
elissonmichael:main

Conversation

@elissonmichael

Copy link
Copy Markdown

@yangricardo I believe you are not expecting an undefined return on this method & spec.

await ctx.stub.getHistoryForKey("1001");
const history = await ctx.stub.getHistoryForKey("1001");
// Expected something like this, but undefined is being returned;
// expect(history).to.have.lengthOf(1);

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yangricardo check this undefined return, I was expecting something with length/size of 1.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant