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

test(vscode): use stub.resolves over stub.returns with Promise #862

Merged
merged 4 commits into from Aug 3, 2023

Conversation

alestiago
Copy link
Contributor

Status

READY

Description

Using stub.resolves(foo) (since it causes the stub to return a Promise which resolves to the provided value) instead of stub.returns(Promise(foo).

Changes:

  • Replaces occurrences of stub.return(Promise(foo)) with stub.resolves(foo)

Additional context

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@alestiago alestiago added test Changes that add missing tests or correcting existing tests vscode labels Aug 2, 2023
@alestiago alestiago self-assigned this Aug 2, 2023
wolfenrain
wolfenrain previously approved these changes Aug 3, 2023
@alestiago alestiago dismissed stale reviews from wolfenrain and erickzanardo via 5570042 August 3, 2023 12:47
@alestiago alestiago merged commit dd06a99 into main Aug 3, 2023
4 checks passed
@alestiago alestiago deleted the alestiago/test-refactor-sinon branch August 3, 2023 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Changes that add missing tests or correcting existing tests
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants