Skip to content

Commit

Permalink
fix import location
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Aug 20, 2024
1 parent 4b7eb36 commit 550ecf0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion property_tests/arbitraries/canister_arb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ function generateSourceCode(
]
.sort((a, b) => a.localeCompare(b, 'en', { sensitivity: 'base' }))
.join();
const importLocation = `azle${api === 'functional' ? '/experimental' : ''}`;

const declarationsFromCanisterMethods = canisterMethods.flatMap(
(method) => method.globalDeclarations
Expand Down Expand Up @@ -179,7 +180,7 @@ function generateSourceCode(
`;

return /*TS*/ `
import { ${imports} } from 'azle';
import { ${imports} } from '${importLocation}';
// @ts-ignore
import deepEqual from 'deep-is';
Expand Down

0 comments on commit 550ecf0

Please sign in to comment.