File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,17 @@ import * as cleapi from '../src/index'
7
7
import { loadYamlFromPath } from './utils/yaml'
8
8
import { createOnNonexist } from './utils/file'
9
9
import { fixtures } from './fixureoptions'
10
+ import { config } from './config'
10
11
11
12
( global as any ) . __BROWSER__ = false
12
13
13
14
function readFile ( filepath : string ) {
14
15
return fs . readFileSync ( filepath , 'utf-8' )
15
16
}
16
17
17
- const pathfromfixtures = 'dsp/ethereum(storage)'
18
- // const pathfromfixtures = 'dsp/ethereum.unsafe-ethereum'
18
+ // const pathfromfixtures = 'dsp/ethereum(storage)'
19
+ const pathfromfixtures = 'dsp/ethereum(event)'
20
+ // const pathfromfixtures = 'dsp/ethereum.unsafe'
19
21
const option = fixtures [ pathfromfixtures ]
20
22
21
23
describe ( 'test compile' , async ( ) => {
@@ -36,7 +38,7 @@ export async function testCompile(option: any) {
36
38
'src/cle.yaml' : readFile ( yamlPath ) ,
37
39
}
38
40
39
- const result = await cleapi . compile ( sources )
41
+ const result = await cleapi . compile ( sources , { compilerServerEndpoint : config . CompilerServerEndpoint } )
40
42
41
43
if ( ( result ?. stderr as any ) ?. length > 0 )
42
44
throw new Error ( result ?. stderr ?. toString ( ) )
You can’t perform that action at this time.
0 commit comments