Skip to content

Commit 1d2074c

Browse files
committed
Fix asset path
1 parent 0b04792 commit 1d2074c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ const defaultNavigationLinks: NavigationLinkMap = {
109109

110110
export { Options } from './types.js';
111111

112-
const assetsPath = join(fileURLToPath(new URL(import.meta.url)),'..');
112+
const assetsPath = join(fileURLToPath(new URL(import.meta.url)),'../../assets');
113113
console.log(assetsPath);
114114

115115
export default function browser(options?: Partial<Options>): Middleware {

test/json-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe('Browser middleware integration test', () => {
1212

1313
app.use( ctx => {
1414
ctx.response.body = { hello: 'world' };
15-
ctx.response.type = 'application/json'
15+
ctx.response.type = 'application/json';
1616
});
1717

1818
const resp = await app.subRequest('GET', '/', {

0 commit comments

Comments
 (0)