File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export class CompilationError extends Error {
12
12
}
13
13
14
14
export async function ascMain ( ascArgv : string [ ] ) {
15
- let stderr = createMemoryStream ( ) ;
15
+ const stderr = createMemoryStream ( ) ;
16
16
const { error } = await compiler . compile ( ascArgv , { stderr } ) ;
17
17
if ( error ) {
18
18
throw new CompilationError ( stderr . toString ( ) ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"extends" : " assemblyscript/std/assembly.json" ,
3
- "include" : [
4
- " ./**/*.ts"
5
- ]
6
- }
3
+ "include" : [" ./**/*.ts" ]
4
+ }
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { compile } from "../../../../src/core/compile.js";
5
5
import { compiler } from "../../../../src/utils/ascWrapper.js" ;
6
6
7
7
beforeEach ( ( ) => {
8
- jest . spyOn ( compiler , "compile" ) . mockImplementation ( async ( ) => {
8
+ jest . spyOn ( compiler , "compile" ) . mockImplementation ( ( ) => {
9
9
throw new Error ( "mock asc.main() error" ) ;
10
10
} ) ;
11
11
} ) ;
You can’t perform that action at this time.
0 commit comments