Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 3ef285c

Browse files
author
Je
committed
chore: update testings
1 parent 20cc19e commit 3ef285c

File tree

1 file changed

+22
-17
lines changed

1 file changed

+22
-17
lines changed

project_test.ts

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,26 @@ import { assertEquals } from 'https://deno.land/std/testing/asserts.ts';
22
import { Project } from './project.ts';
33
import { path } from './std.ts';
44

5-
Deno.test('project build(hello world)', async () => {
6-
const output: string[] = []
7-
const appDir = path.resolve('./examples/hello-world')
8-
const project = new Project(appDir, 'production')
9-
await project.build()
10-
for await (const entry of Deno.readDir(path.resolve(appDir, 'dist'))) {
11-
output.push(entry.name)
12-
}
13-
output.sort()
14-
assertEquals(output, [
15-
'404.html',
16-
'_aleph',
17-
'_fallback.html',
18-
'favicon.ico',
19-
'index.html',
20-
'logo.svg'
21-
])
5+
Deno.test({
6+
name: 'project build(hello world)',
7+
async fn() {
8+
const output: string[] = []
9+
const appDir = path.resolve('./examples/hello-world')
10+
const project = new Project(appDir, 'production')
11+
await project.build()
12+
for await (const entry of Deno.readDir(path.resolve(appDir, 'dist'))) {
13+
output.push(entry.name)
14+
}
15+
output.sort()
16+
assertEquals(output, [
17+
'404.html',
18+
'_aleph',
19+
'_fallback.html',
20+
'favicon.ico',
21+
'index.html',
22+
'logo.svg'
23+
])
24+
},
25+
sanitizeResources: false,
26+
sanitizeOps: false
2227
})

0 commit comments

Comments
 (0)