Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: overwrite global URL with environment's (#4164)
- Loading branch information
1 parent
404c1f4
commit 6a66b35
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// @vitest-environment node | ||
|
||
import { expect, test } from 'vitest' | ||
|
||
const nodeMajor = Number(process.version.slice(1).split('.')[0]) | ||
|
||
test.runIf(nodeMajor > 16)('url correctly creates an object', () => { | ||
expect(() => { | ||
URL.createObjectURL(new Blob([])) | ||
}).not.toThrow() | ||
}) |