Skip to content

Commit

Permalink
remove opt hack
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Aug 22, 2024
1 parent a4b9099 commit accbb02
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions property_tests/arbitraries/canister_arb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,26 +167,11 @@ function generateSourceCode(
};
`;

// TODO remove this in favor of getting the right values from the arbs if its class api
const optHack =
api === 'functional'
? ''
: `
function Some<T>(value: T): T[] {
return [value];
}
const None: any[] = [];
`;

return /*TS*/ `
import { ${imports} } from '${importLocation}';
// @ts-ignore
import deepEqual from 'deep-is';
${optHack}
// #region Declarations
${declarations}
// #endregion Declarations
Expand Down

0 comments on commit accbb02

Please sign in to comment.