Skip to content

Commit 1acabab

Browse files
committed
🔧 fix: node test
1 parent eb79274 commit 1acabab

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

test/node/cjs/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ if ('Bun' in globalThis) {
22
throw new Error('❌ Use Node.js to run this test!');
33
}
44

5-
const { bearer } = require('@elysiajs/bearer');
5+
const { createAccelerator } = require('json-accelerator');
66

7-
if (typeof bearer !== 'function') {
7+
if (typeof createAccelerator !== 'function') {
88
throw new Error('❌ CommonJS Node.js failed');
99
}
1010

test/node/cjs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"type": "commonjs",
33
"dependencies": {
4-
"@elysiajs/bearer": "../../.."
4+
"json-accelerator": "../../.."
55
}
6-
}
6+
}

test/node/esm/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ if ('Bun' in globalThis) {
22
throw new Error('❌ Use Node.js to run this test!');
33
}
44

5-
import { bearer } from '@elysiajs/bearer';
5+
import { createAccelerator } from 'json-accelerator';
66

7-
if (typeof bearer !== 'function') {
7+
if (typeof createAccelerator !== 'function') {
88
throw new Error('❌ ESM Node.js failed');
99
}
1010

test/node/esm/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"type": "module",
33
"dependencies": {
4-
"@elysiajs/bearer": "../../.."
4+
"json-accelerator": "../../.."
55
}
6-
}
6+
}

0 commit comments

Comments
 (0)