Skip to content

Commit 2e9df69

Browse files
committed
fix: test case
1 parent c0c5fdb commit 2e9df69

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/backend/server/src/__tests__/copilot.e2e.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { randomUUID } from 'node:crypto';
22

3-
import { Package } from '@affine-tools/utils/workspace';
43
import type { TestFn } from 'ava';
54
import ava from 'ava';
65
import Sinon from 'sinon';
@@ -756,7 +755,7 @@ test('should be able to manage context', async t => {
756755

757756
const fs = await import('node:fs');
758757
const buffer = fs.readFileSync(
759-
new Package('@affine/native').join('fixtures/sample.pdf').toFileUrl()
758+
new URL('../../../../common/native/fixtures/sample.pdf', import.meta.url)
760759
);
761760

762761
{

packages/backend/server/src/__tests__/copilot.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { randomUUID } from 'node:crypto';
22

3-
import { Package } from '@affine-tools/utils/workspace';
43
import type { TestFn } from 'ava';
54
import ava from 'ava';
65
import Sinon from 'sinon';
@@ -1331,7 +1330,7 @@ test('should be able to manage context', async t => {
13311330

13321331
const fs = await import('node:fs');
13331332
const buffer = fs.readFileSync(
1334-
new Package('@affine/native').join('fixtures/sample.pdf').toFileUrl()
1333+
new URL('../../../../common/native/fixtures/sample.pdf', import.meta.url)
13351334
);
13361335

13371336
{

0 commit comments

Comments
 (0)