Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(context-pad): remove return statement #895

Merged
merged 1 commit into from
May 7, 2024
Merged

Conversation

philippfromme
Copy link
Contributor

@@ -1489,6 +1484,81 @@ describe('features/context-pad', function() {
expect(warnSpy).to.have.been.calledOnce;
expect(warnSpy.getCall(0).args[ 0 ]).to.be.instanceOf(Error);
expect(warnSpy.getCall(0).args[ 0 ].message).to.match(/is deprecated/);

console.warn.restore();
Copy link
Member

Choose a reason for hiding this comment

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

This won't be called if the test fails.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, will adjust.

* return statement should have been removed with #888
* account for possibility of target being array (target === [ target ])
@philippfromme
Copy link
Contributor Author

@barmac I wrote a separate test for the warning with proper setup and teardown of the spy.

@philippfromme philippfromme requested a review from barmac May 7, 2024 13:32
@philippfromme philippfromme changed the base branch from develop to main May 7, 2024 14:54
@philippfromme philippfromme merged commit 7f87f70 into main May 7, 2024
12 checks passed
@philippfromme philippfromme deleted the fix-context-pad branch May 7, 2024 14:55
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label May 7, 2024
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.

3 participants