mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #2234] [MERGED] feat: add toInclude() function #3681
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#3681
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/2234
Author: @ace-n
Created: 4/5/2022
Status: ✅ Merged
Merged: 4/5/2022
Merged by: @AndrewBastin
Base:
main← Head:to-contains📝 Commits (5)
7aaf421feat: add toInclude() function0b2c0d5Merge branch 'main' into to-containsb2a74daFix typo in pw-test.jsond259381Merge branch 'main' into to-containsb7dfe41chore: bump sandbox version and cli version📊 Changes
5 files changed (+244 additions, -3 deletions)
View changed files
📝
packages/hoppscotch-app/helpers/terndoc/pw-test.json(+2 -1)📝
packages/hoppscotch-cli/package.json(+1 -1)📝
packages/hoppscotch-js-sandbox/package.json(+1 -1)➕
packages/hoppscotch-js-sandbox/src/__tests__/testing/expect/toInclude.spec.ts(+183 -0)📝
packages/hoppscotch-js-sandbox/src/test-runner.ts(+57 -0)📄 Description
Closes #2221
Description
Adds
toIncludeoperator to testing suiteChecks
Additional Information
"123".toInclude(123)will returntrueeven though their types are different (stringvs.int).I included a comment about this, with a link to the relevant JS spec.
If this is an issue, we should switch to
indexOfinstead ofincludes.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.