Skip to content

Commit c82c99f

Browse files
committed
test: test Deno codepath on non-Deno platforms too
1 parent 9f207a5 commit c82c99f

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

tests/single-byte.deno.test.cjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
if (process.browser) {
2+
const { test } = require('node:test')
3+
test.skip('Deno tests')
4+
} else {
5+
if (!globalThis.Deno) globalThis.Deno = true
6+
require('./single-byte.test.js')
7+
}

tests/utf16.deno.test.cjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
if (process.browser) {
2+
const { test } = require('node:test')
3+
test.skip('Deno tests')
4+
} else {
5+
if (!globalThis.Deno) globalThis.Deno = true
6+
require('./utf16.test.js')
7+
}

0 commit comments

Comments
 (0)