This repository was archived by the owner on Jul 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +22
-17
lines changed Expand file tree Collapse file tree 1 file changed +22
-17
lines changed Original file line number Diff line number Diff line change @@ -2,21 +2,26 @@ import { assertEquals } from 'https://deno.land/std/testing/asserts.ts';
2
2
import { Project } from './project.ts' ;
3
3
import { path } from './std.ts' ;
4
4
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
22
27
} )
You can’t perform that action at this time.
0 commit comments