Skip to content

Commit

Permalink
chore: fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Feb 22, 2024
1 parent 0208c0d commit 44c5801
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions compiler/wasm/test/compiler/browser/compile.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable @typescript-eslint/ban-ts-comment */
import { getPaths } from '../../shared';
import { expect } from '@esm-bundle/chai';
import { compile, createFileManager } from '@noir-lang/noir_wasm';
import { compile_program, compile_contract, createFileManager } from '@noir-lang/noir_wasm';
import { ContractArtifact, ProgramArtifact } from '../../../src/types/noir_artifact';
import { shouldCompileContractIdentically, shouldCompileProgramIdentically } from '../shared/compile.test';

Expand Down Expand Up @@ -33,7 +33,7 @@ describe('noir-compiler/browser', () => {
await fm.writeFile(path, (await getFile(path)).body as ReadableStream<Uint8Array>);
}
const nargoArtifact = (await getPrecompiledSource(simpleScriptExpectedArtifact)) as ProgramArtifact;
const noirWasmArtifact = await compile(fm, '/fixtures/simple');
const noirWasmArtifact = await compile_program(fm, '/fixtures/simple');

return { nargoArtifact, noirWasmArtifact };
},
Expand All @@ -51,7 +51,7 @@ describe('noir-compiler/browser', () => {
await fm.writeFile(path, (await getFile(path)).body as ReadableStream<Uint8Array>);
}
const nargoArtifact = (await getPrecompiledSource(depsScriptExpectedArtifact)) as ProgramArtifact;
const noirWasmArtifact = await compile(fm, '/fixtures/with-deps');
const noirWasmArtifact = await compile_program(fm, '/fixtures/with-deps');

return { nargoArtifact, noirWasmArtifact };
},
Expand All @@ -69,7 +69,7 @@ describe('noir-compiler/browser', () => {
await fm.writeFile(path, (await getFile(path)).body as ReadableStream<Uint8Array>);
}
const nargoArtifact = (await getPrecompiledSource(contractExpectedArtifact)) as ContractArtifact;
const noirWasmArtifact = await compile(fm, '/fixtures/noir-contract');
const noirWasmArtifact = await compile_contract(fm, '/fixtures/noir-contract');

return { nargoArtifact, noirWasmArtifact };
},
Expand Down
6 changes: 3 additions & 3 deletions compiler/wasm/test/compiler/node/compile.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { join, resolve } from 'path';
import { getPaths } from '../../shared';

import { expect } from 'chai';
import { compile, compile_contract, createFileManager } from '@noir-lang/noir_wasm';
import { compile_program, compile_contract, createFileManager } from '@noir-lang/noir_wasm';
import { readFile } from 'fs/promises';
import { ContractArtifact, ProgramArtifact } from '../../../src/types/noir_artifact';
import { shouldCompileContractIdentically, shouldCompileProgramIdentically } from '../shared/compile.test';
Expand All @@ -15,7 +15,7 @@ describe('noir-compiler/node', () => {

const fm = createFileManager(simpleScriptProjectPath);
const nargoArtifact = JSON.parse((await readFile(simpleScriptExpectedArtifact)).toString()) as ProgramArtifact;
const noirWasmArtifact = await compile(fm);
const noirWasmArtifact = await compile_program(fm);
return { nargoArtifact, noirWasmArtifact };
}, expect);

Expand All @@ -24,7 +24,7 @@ describe('noir-compiler/node', () => {

const fm = createFileManager(depsScriptProjectPath);
const nargoArtifact = JSON.parse((await readFile(depsScriptExpectedArtifact)).toString()) as ProgramArtifact;
const noirWasmArtifact = await compile(fm);
const noirWasmArtifact = await compile_program(fm);
return { nargoArtifact, noirWasmArtifact };
}, expect);

Expand Down

0 comments on commit 44c5801

Please sign in to comment.