Skip to content

[jasmine] Add throwUnless and throwUnlessAsync globals#335

Merged
sindresorhus merged 1 commit intosindresorhus:mainfrom
ej612:main
Jan 27, 2026
Merged

[jasmine] Add throwUnless and throwUnlessAsync globals#335
sindresorhus merged 1 commit intosindresorhus:mainfrom
ej612:main

Conversation

@ej612
Copy link
Copy Markdown
Contributor

@ej612 ej612 commented Jan 27, 2026

Add jasmine's throwUnless & throwUnlessAsync globals that were added with v5.1.0.

jasmine 5.1.0 added the throwUnless & throwUnlessAsync globals, but they were never added to this package.
Copy link
Copy Markdown
Collaborator

@fisker fisker left a comment

Choose a reason for hiding this comment

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

LGTM.

@sindresorhus sindresorhus merged commit f195378 into sindresorhus:main Jan 27, 2026
5 checks passed
@sindresorhus
Copy link
Copy Markdown
Owner

@fisker This PR edited the JSON instead of the data. Would have been nice to have a CI check for that.

@fisker
Copy link
Copy Markdown
Collaborator

fisker commented Feb 1, 2026

Strange, we already have test for it

globals/test.mjs

Lines 102 to 105 in 8176ac7

t.deepEqual(
jsData,
globals,
);

@fisker
Copy link
Copy Markdown
Collaborator

fisker commented Feb 1, 2026

And it works on local,

image image

@fisker
Copy link
Copy Markdown
Collaborator

fisker commented Feb 1, 2026

736-c41-2c1-e464fc974 pushed a commit to Swiss-Armed-Forces/Loom that referenced this pull request Mar 31, 2026
This MR contains the following updates:

| Package | Type | Update | Change | OpenSSF |
|---|---|---|---|---|
| [globals](https://github.com/sindresorhus/globals) | devDependencies | major | [`^16.2.0` → `^17.0.0`](https://renovatebot.com/diffs/npm/globals/16.5.0/17.4.0) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/sindresorhus/globals/badge)](https://securityscorecards.dev/viewer/?uri=github.com/sindresorhus/globals) |

---

### Release Notes

<details>
<summary>sindresorhus/globals (globals)</summary>

### [`v17.4.0`](https://github.com/sindresorhus/globals/releases/tag/v17.4.0)

[Compare Source](sindresorhus/globals@v17.3.0...v17.4.0)

- Update globals (2026-03-01) ([#&#8203;338](sindresorhus/globals#338))  [`d43a051`](sindresorhus/globals@d43a051)

***

### [`v17.3.0`](https://github.com/sindresorhus/globals/releases/tag/v17.3.0)

[Compare Source](sindresorhus/globals@v17.2.0...v17.3.0)

- Update globals (2026-02-01) ([#&#8203;336](sindresorhus/globals#336))  [`295fba9`](sindresorhus/globals@295fba9)

***

### [`v17.2.0`](https://github.com/sindresorhus/globals/releases/tag/v17.2.0)

[Compare Source](sindresorhus/globals@v17.1.0...v17.2.0)

- `jasmine`: Add `throwUnless` and `throwUnlessAsync` globals ([#&#8203;335](sindresorhus/globals#335))  [`97f23a7`](sindresorhus/globals@97f23a7)

***

### [`v17.1.0`](https://github.com/sindresorhus/globals/releases/tag/v17.1.0)

[Compare Source](sindresorhus/globals@v17.0.0...v17.1.0)

- Add `webpack` and `rspack` globals ([#&#8203;333](sindresorhus/globals#333))  [`65cae73`](sindresorhus/globals@65cae73)

***

### [`v17.0.0`](https://github.com/sindresorhus/globals/releases/tag/v17.0.0)

[Compare Source](sindresorhus/globals@v16.5.0...v17.0.0)

##### Breaking

- Split `audioWorklet` environment from `browser` ([#&#8203;320](sindresorhus/globals#320))  [`7bc293e`](sindresorhus/globals@7bc293e)

##### Improvements

- Update globals ([#&#8203;329](sindresorhus/globals#329))  [`ebe1063`](sindresorhus/globals@ebe1063)
- Get all browser globals from both `chrome` and `firefox` ([#&#8203;321](sindresorhus/globals#321))  [`59ceff8`](sindresorhus/globals@59ceff8)
- Add `bunBuiltin` environment ([#&#8203;324](sindresorhus/globals#324))  [`1bc6e3b`](sindresorhus/globals@1bc6e3b)
- Add `denoBuiltin` environment ([#&#8203;324](sindresorhus/globals#324))  [`1bc6e3b`](sindresorhus/globals@1bc6e3b)
- Add `paintWorklet` environment ([#&#8203;323](sindresorhus/globals#323))  [`4b78f56`](sindresorhus/globals@4b78f56)
- Add `sharedWorker` environment ([#&#8203;322](sindresorhus/globals#322))  [`4a02a85`](sindresorhus/globals@4a02a85)

***

</details>

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My40Ni4zIiwidXBkYXRlZEluVmVyIjoiNDMuODQuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwicmVub3ZhdGUiXX0=-->

See merge request swiss-armed-forces/cyber-command/cea/loom!341

Co-authored-by: Loom MR Pipeline Trigger <group_103951964_bot_9504bb8dead6d4e406ad817a607f24be@noreply.gitlab.com>
Co-authored-by: persistent-chamoisee yield <persistent-chamoisee-yield-9fd-f86-2e0-f31d23b2e@swiss-armed-forces-open-source.ch>
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