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

switch from should to expect #1163

Merged
merged 4 commits into from
Feb 6, 2023
Merged

switch from should to expect #1163

merged 4 commits into from
Feb 6, 2023

Conversation

hipstersmoothie
Copy link
Collaborator

@hipstersmoothie hipstersmoothie commented Feb 6, 2023

Should is super old and does weird stuff with prototypes. This PR changes all uses of should to jest's expect. The package we use is @storybook/expect which is a version of expect that's pre bundled for use in browser.

📦 Published PR as canary version: 0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0

✨ Test out this PR locally via:

npm install @jimp/core@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/custom@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install jimp@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/plugin-blit@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/plugin-blur@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/plugin-circle@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/plugin-color@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/plugin-contain@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/plugin-cover@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/plugin-crop@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/plugin-displace@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/plugin-dither@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/plugin-fisheye@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/plugin-flip@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/plugin-gaussian@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/plugin-invert@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/plugin-mask@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/plugin-normalize@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/plugin-print@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/plugin-resize@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/plugin-rotate@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/plugin-scale@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/plugin-shadow@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/plugin-threshold@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/plugins@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/test-utils@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/bmp@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/gif@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/jpeg@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/png@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/tiff@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/types@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
npm install @jimp/utils@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
# or 
yarn add @jimp/core@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/custom@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add jimp@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/plugin-blit@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/plugin-blur@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/plugin-circle@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/plugin-color@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/plugin-contain@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/plugin-cover@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/plugin-crop@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/plugin-displace@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/plugin-dither@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/plugin-fisheye@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/plugin-flip@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/plugin-gaussian@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/plugin-invert@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/plugin-mask@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/plugin-normalize@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/plugin-print@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/plugin-resize@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/plugin-rotate@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/plugin-scale@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/plugin-shadow@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/plugin-threshold@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/plugins@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/test-utils@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/bmp@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/gif@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/jpeg@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/png@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/tiff@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/types@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0
yarn add @jimp/utils@0.21.4--canary.1163.d07ed6254d130e2995d24101e93427ec091016e6.0

@nopeless nopeless mentioned this pull request Feb 6, 2023
@hipstersmoothie hipstersmoothie added the internal Changes only affect the internal API label Feb 6, 2023
@hipstersmoothie hipstersmoothie merged commit 22f2535 into master Feb 6, 2023
@hipstersmoothie hipstersmoothie deleted the should branch February 6, 2023 01:11
@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2023

🚀 PR was released in v0.22.0 🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Changes only affect the internal API released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant