From 8e58473d91bc2423c52b26b0e8a86fbc945e70ca Mon Sep 17 00:00:00 2001 From: Jordan Last Date: Wed, 13 Dec 2023 14:57:41 -0600 Subject: [PATCH] add logging into deepEqual inside and outside of canister --- property_tests/are_params_correctly_ordered.ts | 2 +- property_tests/index.ts | 15 +++++++++++++++ property_tests/tests/blob/test/generate_tests.ts | 5 +---- property_tests/tests/bool/test/generate_tests.ts | 5 +---- .../tests/float32/test/generate_tests.ts | 5 +---- .../tests/float64/test/generate_tests.ts | 5 +---- property_tests/tests/func/test/generate_tests.ts | 5 +---- property_tests/tests/int/test/generate_tests.ts | 5 +---- property_tests/tests/int16/test/generate_tests.ts | 5 +---- property_tests/tests/int32/test/generate_tests.ts | 5 +---- property_tests/tests/int64/test/generate_tests.ts | 5 +---- property_tests/tests/int8/test/generate_tests.ts | 5 +---- property_tests/tests/nat/test/generate_tests.ts | 5 +---- property_tests/tests/nat16/test/generate_tests.ts | 5 +---- property_tests/tests/nat32/test/generate_tests.ts | 5 +---- property_tests/tests/nat64/test/generate_tests.ts | 5 +---- property_tests/tests/nat8/test/generate_tests.ts | 5 +---- property_tests/tests/null/test/generate_tests.ts | 5 +---- property_tests/tests/opt/test/generate_tests.ts | 5 +---- .../tests/principal/test/generate_tests.ts | 5 +---- .../tests/query_methods/test/generate_tests.ts | 5 +---- .../tests/record/test/generate_tests.ts | 5 +---- .../tests/stable_b_tree_map/test/contains_key.ts | 5 +---- .../tests/stable_b_tree_map/test/get.ts | 5 +---- .../tests/stable_b_tree_map/test/insert.ts | 5 +---- .../tests/stable_b_tree_map/test/is_empty.ts | 5 +---- .../tests/stable_b_tree_map/test/items.ts | 5 +---- .../tests/stable_b_tree_map/test/keys.ts | 5 +---- .../tests/stable_b_tree_map/test/len.ts | 5 +---- .../tests/stable_b_tree_map/test/remove.ts | 5 +---- .../tests/stable_b_tree_map/test/values.ts | 5 +---- property_tests/tests/text/test/generate_tests.ts | 5 +---- property_tests/tests/tuple/test/generate_tests.ts | 5 +---- .../tests/update_methods/test/generate_tests.ts | 5 +---- .../tests/variant/test/generate_tests.ts | 5 +---- property_tests/tests/vec/test/generate_tests.ts | 5 +---- 36 files changed, 50 insertions(+), 137 deletions(-) diff --git a/property_tests/are_params_correctly_ordered.ts b/property_tests/are_params_correctly_ordered.ts index 398dd31693..18cbe45c91 100644 --- a/property_tests/are_params_correctly_ordered.ts +++ b/property_tests/are_params_correctly_ordered.ts @@ -12,7 +12,7 @@ export function areParamsCorrectlyOrdered( ${el.src.valueLiteral} )`; - return `if (!${areEqual}) throw new Error('${name} is incorrectly ordered')`; + return `if (!${areEqual}) {console.log('value', ${name}); throw new Error('${name} is incorrectly ordered');}`; }) .join('\n'); } diff --git a/property_tests/index.ts b/property_tests/index.ts index 5e896d5901..a595320573 100644 --- a/property_tests/index.ts +++ b/property_tests/index.ts @@ -1,4 +1,7 @@ import fc from 'fast-check'; +// @ts-ignore +import libraryDeepEqual from 'deep-is'; + import { Canister } from './arbitraries/canister_arb'; import { existsSync, mkdirSync, writeFileSync } from 'fs'; import { execSync } from 'child_process'; @@ -72,3 +75,15 @@ export const defaultArrayConstraints = { minLength: 20, maxLength: 100 }; + +export function deepEqual(a: any, b: any): boolean { + const result = libraryDeepEqual(a, b); + + if (result === false) { + console.log('deepEqual returned false'); + console.log('deepEqual value a', a); + console.log('deepEqual value b', b); + } + + return result; +} diff --git a/property_tests/tests/blob/test/generate_tests.ts b/property_tests/tests/blob/test/generate_tests.ts index 11cdefc293..2e54c7a776 100644 --- a/property_tests/tests/blob/test/generate_tests.ts +++ b/property_tests/tests/blob/test/generate_tests.ts @@ -1,7 +1,4 @@ -// @ts-ignore -import deepEqual from 'deep-is'; - -import { getActor, Named } from 'azle/property_tests'; +import { deepEqual, getActor, Named } from 'azle/property_tests'; import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; import { Test } from 'azle/test'; diff --git a/property_tests/tests/bool/test/generate_tests.ts b/property_tests/tests/bool/test/generate_tests.ts index d3566d1656..4ee57f1ca4 100644 --- a/property_tests/tests/bool/test/generate_tests.ts +++ b/property_tests/tests/bool/test/generate_tests.ts @@ -1,7 +1,4 @@ -// @ts-ignore -import deepEqual from 'deep-is'; - -import { getActor, Named } from 'azle/property_tests'; +import { deepEqual, getActor, Named } from 'azle/property_tests'; import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; import { Test } from 'azle/test'; diff --git a/property_tests/tests/float32/test/generate_tests.ts b/property_tests/tests/float32/test/generate_tests.ts index e3bce7d74e..b231b971c5 100644 --- a/property_tests/tests/float32/test/generate_tests.ts +++ b/property_tests/tests/float32/test/generate_tests.ts @@ -1,7 +1,4 @@ -// @ts-ignore -import deepEqual from 'deep-is'; - -import { getActor, Named } from 'azle/property_tests'; +import { deepEqual, getActor, Named } from 'azle/property_tests'; import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; import { Test } from 'azle/test'; diff --git a/property_tests/tests/float64/test/generate_tests.ts b/property_tests/tests/float64/test/generate_tests.ts index 4739fe0873..d0aa401345 100644 --- a/property_tests/tests/float64/test/generate_tests.ts +++ b/property_tests/tests/float64/test/generate_tests.ts @@ -1,7 +1,4 @@ -// @ts-ignore -import deepEqual from 'deep-is'; - -import { getActor, Named } from 'azle/property_tests'; +import { deepEqual, getActor, Named } from 'azle/property_tests'; import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; import { Test } from 'azle/test'; diff --git a/property_tests/tests/func/test/generate_tests.ts b/property_tests/tests/func/test/generate_tests.ts index 16149f8923..6fd1acc6f5 100644 --- a/property_tests/tests/func/test/generate_tests.ts +++ b/property_tests/tests/func/test/generate_tests.ts @@ -1,7 +1,4 @@ -// @ts-ignore -import deepEqual from 'deep-is'; - -import { getActor, Named } from 'azle/property_tests'; +import { deepEqual, getActor, Named } from 'azle/property_tests'; import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; import { Func } from 'azle/property_tests/arbitraries/candid/reference/func_arb'; import { Test } from 'azle/test'; diff --git a/property_tests/tests/int/test/generate_tests.ts b/property_tests/tests/int/test/generate_tests.ts index 64db0bfc35..6528b9ad20 100644 --- a/property_tests/tests/int/test/generate_tests.ts +++ b/property_tests/tests/int/test/generate_tests.ts @@ -1,7 +1,4 @@ -// @ts-ignore -import deepEqual from 'deep-is'; - -import { getActor, Named } from 'azle/property_tests'; +import { deepEqual, getActor, Named } from 'azle/property_tests'; import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; import { Test } from 'azle/test'; diff --git a/property_tests/tests/int16/test/generate_tests.ts b/property_tests/tests/int16/test/generate_tests.ts index 8abd2f59fb..afc1280729 100644 --- a/property_tests/tests/int16/test/generate_tests.ts +++ b/property_tests/tests/int16/test/generate_tests.ts @@ -1,7 +1,4 @@ -// @ts-ignore -import deepEqual from 'deep-is'; - -import { getActor, Named } from 'azle/property_tests'; +import { deepEqual, getActor, Named } from 'azle/property_tests'; import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; import { Test } from 'azle/test'; diff --git a/property_tests/tests/int32/test/generate_tests.ts b/property_tests/tests/int32/test/generate_tests.ts index fa6c287b36..dabccb58f2 100644 --- a/property_tests/tests/int32/test/generate_tests.ts +++ b/property_tests/tests/int32/test/generate_tests.ts @@ -1,7 +1,4 @@ -// @ts-ignore -import deepEqual from 'deep-is'; - -import { getActor, Named } from 'azle/property_tests'; +import { deepEqual, getActor, Named } from 'azle/property_tests'; import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; import { Test } from 'azle/test'; diff --git a/property_tests/tests/int64/test/generate_tests.ts b/property_tests/tests/int64/test/generate_tests.ts index 6da080f3fb..dc8fc6ed90 100644 --- a/property_tests/tests/int64/test/generate_tests.ts +++ b/property_tests/tests/int64/test/generate_tests.ts @@ -1,7 +1,4 @@ -// @ts-ignore -import deepEqual from 'deep-is'; - -import { getActor, Named } from 'azle/property_tests'; +import { deepEqual, getActor, Named } from 'azle/property_tests'; import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; import { Test } from 'azle/test'; diff --git a/property_tests/tests/int8/test/generate_tests.ts b/property_tests/tests/int8/test/generate_tests.ts index 57300b1c67..57228f09df 100644 --- a/property_tests/tests/int8/test/generate_tests.ts +++ b/property_tests/tests/int8/test/generate_tests.ts @@ -1,7 +1,4 @@ -// @ts-ignore -import deepEqual from 'deep-is'; - -import { getActor, Named } from 'azle/property_tests'; +import { deepEqual, getActor, Named } from 'azle/property_tests'; import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; import { Test } from 'azle/test'; diff --git a/property_tests/tests/nat/test/generate_tests.ts b/property_tests/tests/nat/test/generate_tests.ts index c6ee4821bc..e0b7c92771 100644 --- a/property_tests/tests/nat/test/generate_tests.ts +++ b/property_tests/tests/nat/test/generate_tests.ts @@ -1,7 +1,4 @@ -// @ts-ignore -import deepEqual from 'deep-is'; - -import { getActor, Named } from 'azle/property_tests'; +import { deepEqual, getActor, Named } from 'azle/property_tests'; import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; import { Test } from 'azle/test'; diff --git a/property_tests/tests/nat16/test/generate_tests.ts b/property_tests/tests/nat16/test/generate_tests.ts index e4f6f806c4..f4b0d5c3fb 100644 --- a/property_tests/tests/nat16/test/generate_tests.ts +++ b/property_tests/tests/nat16/test/generate_tests.ts @@ -1,7 +1,4 @@ -// @ts-ignore -import deepEqual from 'deep-is'; - -import { getActor, Named } from 'azle/property_tests'; +import { deepEqual, getActor, Named } from 'azle/property_tests'; import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; import { Test } from 'azle/test'; diff --git a/property_tests/tests/nat32/test/generate_tests.ts b/property_tests/tests/nat32/test/generate_tests.ts index 571293b7ba..05476022fd 100644 --- a/property_tests/tests/nat32/test/generate_tests.ts +++ b/property_tests/tests/nat32/test/generate_tests.ts @@ -1,7 +1,4 @@ -// @ts-ignore -import deepEqual from 'deep-is'; - -import { getActor, Named } from 'azle/property_tests'; +import { deepEqual, getActor, Named } from 'azle/property_tests'; import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; import { Test } from 'azle/test'; diff --git a/property_tests/tests/nat64/test/generate_tests.ts b/property_tests/tests/nat64/test/generate_tests.ts index 8ca65d843e..5eaf547f84 100644 --- a/property_tests/tests/nat64/test/generate_tests.ts +++ b/property_tests/tests/nat64/test/generate_tests.ts @@ -1,7 +1,4 @@ -// @ts-ignore -import deepEqual from 'deep-is'; - -import { getActor, Named } from 'azle/property_tests'; +import { deepEqual, getActor, Named } from 'azle/property_tests'; import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; import { Test } from 'azle/test'; diff --git a/property_tests/tests/nat8/test/generate_tests.ts b/property_tests/tests/nat8/test/generate_tests.ts index 5125ae9a0c..003d4c7646 100644 --- a/property_tests/tests/nat8/test/generate_tests.ts +++ b/property_tests/tests/nat8/test/generate_tests.ts @@ -1,7 +1,4 @@ -// @ts-ignore -import deepEqual from 'deep-is'; - -import { getActor, Named } from 'azle/property_tests'; +import { deepEqual, getActor, Named } from 'azle/property_tests'; import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; import { Test } from 'azle/test'; diff --git a/property_tests/tests/null/test/generate_tests.ts b/property_tests/tests/null/test/generate_tests.ts index 00cdacd037..c1c0e9aa85 100644 --- a/property_tests/tests/null/test/generate_tests.ts +++ b/property_tests/tests/null/test/generate_tests.ts @@ -1,7 +1,4 @@ -// @ts-ignore -import deepEqual from 'deep-is'; - -import { getActor, Named } from 'azle/property_tests'; +import { deepEqual, getActor, Named } from 'azle/property_tests'; import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; import { Test } from 'azle/test'; diff --git a/property_tests/tests/opt/test/generate_tests.ts b/property_tests/tests/opt/test/generate_tests.ts index 5443081501..aeb24ce24e 100644 --- a/property_tests/tests/opt/test/generate_tests.ts +++ b/property_tests/tests/opt/test/generate_tests.ts @@ -1,7 +1,4 @@ -// @ts-ignore -import deepEqual from 'deep-is'; - -import { getActor, Named } from 'azle/property_tests'; +import { deepEqual, getActor, Named } from 'azle/property_tests'; import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; import { Opt } from 'azle/property_tests/arbitraries/candid/constructed/opt_arb'; import { Test } from 'azle/test'; diff --git a/property_tests/tests/principal/test/generate_tests.ts b/property_tests/tests/principal/test/generate_tests.ts index c44fa40eb5..c305230f51 100644 --- a/property_tests/tests/principal/test/generate_tests.ts +++ b/property_tests/tests/principal/test/generate_tests.ts @@ -1,9 +1,6 @@ import { Principal } from '@dfinity/principal'; -// @ts-ignore -import deepEqual from 'deep-is'; - -import { getActor, Named } from 'azle/property_tests'; +import { deepEqual, getActor, Named } from 'azle/property_tests'; import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; import { Test } from 'azle/test'; diff --git a/property_tests/tests/query_methods/test/generate_tests.ts b/property_tests/tests/query_methods/test/generate_tests.ts index 3c7100e5b3..4a3fef960a 100644 --- a/property_tests/tests/query_methods/test/generate_tests.ts +++ b/property_tests/tests/query_methods/test/generate_tests.ts @@ -1,7 +1,4 @@ -// @ts-ignore -import deepEqual from 'deep-is'; - -import { getActor, Named } from 'azle/property_tests'; +import { deepEqual, getActor, Named } from 'azle/property_tests'; import { CorrespondingJSType } from 'azle/property_tests/arbitraries/candid/corresponding_js_type'; import { CandidReturnType } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; diff --git a/property_tests/tests/record/test/generate_tests.ts b/property_tests/tests/record/test/generate_tests.ts index 77520f68e0..9d659e61b6 100644 --- a/property_tests/tests/record/test/generate_tests.ts +++ b/property_tests/tests/record/test/generate_tests.ts @@ -1,7 +1,4 @@ -// @ts-ignore -import deepEqual from 'deep-is'; - -import { getActor, Named } from 'azle/property_tests'; +import { deepEqual, getActor, Named } from 'azle/property_tests'; import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; import { Record } from 'azle/property_tests/arbitraries/candid/constructed/record_arb'; import { Test } from 'azle/test'; diff --git a/property_tests/tests/stable_b_tree_map/test/contains_key.ts b/property_tests/tests/stable_b_tree_map/test/contains_key.ts index 7c73d2cf45..7a98501007 100644 --- a/property_tests/tests/stable_b_tree_map/test/contains_key.ts +++ b/property_tests/tests/stable_b_tree_map/test/contains_key.ts @@ -1,9 +1,6 @@ import fc from 'fast-check'; -// @ts-ignore -import deepEqual from 'deep-is'; - -import { getActor } from 'azle/property_tests'; +import { deepEqual, getActor } from 'azle/property_tests'; import { Test } from 'azle/test'; import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; diff --git a/property_tests/tests/stable_b_tree_map/test/get.ts b/property_tests/tests/stable_b_tree_map/test/get.ts index e80b8ddea3..ad35de12e8 100644 --- a/property_tests/tests/stable_b_tree_map/test/get.ts +++ b/property_tests/tests/stable_b_tree_map/test/get.ts @@ -1,10 +1,7 @@ import fc from 'fast-check'; -// @ts-ignore -import deepEqual from 'deep-is'; - import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { getActor } from 'azle/property_tests'; +import { deepEqual, getActor } from 'azle/property_tests'; import { Test } from 'azle/test'; import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; diff --git a/property_tests/tests/stable_b_tree_map/test/insert.ts b/property_tests/tests/stable_b_tree_map/test/insert.ts index 7caaf4ed78..bcc18d03da 100644 --- a/property_tests/tests/stable_b_tree_map/test/insert.ts +++ b/property_tests/tests/stable_b_tree_map/test/insert.ts @@ -1,10 +1,7 @@ import fc from 'fast-check'; -// @ts-ignore -import deepEqual from 'deep-is'; - import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { getActor } from 'azle/property_tests'; +import { deepEqual, getActor } from 'azle/property_tests'; import { Test } from 'azle/test'; import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; diff --git a/property_tests/tests/stable_b_tree_map/test/is_empty.ts b/property_tests/tests/stable_b_tree_map/test/is_empty.ts index 0160dfca52..2029c5ee48 100644 --- a/property_tests/tests/stable_b_tree_map/test/is_empty.ts +++ b/property_tests/tests/stable_b_tree_map/test/is_empty.ts @@ -1,10 +1,7 @@ import fc from 'fast-check'; -// @ts-ignore -import deepEqual from 'deep-is'; - import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { getActor } from 'azle/property_tests'; +import { deepEqual, getActor } from 'azle/property_tests'; import { Test } from 'azle/test'; import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; diff --git a/property_tests/tests/stable_b_tree_map/test/items.ts b/property_tests/tests/stable_b_tree_map/test/items.ts index 5cd85d3417..7cb4bd8e0f 100644 --- a/property_tests/tests/stable_b_tree_map/test/items.ts +++ b/property_tests/tests/stable_b_tree_map/test/items.ts @@ -1,10 +1,7 @@ import fc from 'fast-check'; -// @ts-ignore -import deepEqual from 'deep-is'; - import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { getActor } from 'azle/property_tests'; +import { deepEqual, getActor } from 'azle/property_tests'; import { Test } from 'azle/test'; import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; diff --git a/property_tests/tests/stable_b_tree_map/test/keys.ts b/property_tests/tests/stable_b_tree_map/test/keys.ts index 23816b1031..311cfdec4c 100644 --- a/property_tests/tests/stable_b_tree_map/test/keys.ts +++ b/property_tests/tests/stable_b_tree_map/test/keys.ts @@ -1,10 +1,7 @@ import fc from 'fast-check'; -// @ts-ignore -import deepEqual from 'deep-is'; - import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { getActor } from 'azle/property_tests'; +import { deepEqual, getActor } from 'azle/property_tests'; import { Test } from 'azle/test'; import { getArrayForCandidType, getArrayStringForCandidType } from './utils'; import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; diff --git a/property_tests/tests/stable_b_tree_map/test/len.ts b/property_tests/tests/stable_b_tree_map/test/len.ts index cc38e93e5a..377639e131 100644 --- a/property_tests/tests/stable_b_tree_map/test/len.ts +++ b/property_tests/tests/stable_b_tree_map/test/len.ts @@ -1,10 +1,7 @@ import fc from 'fast-check'; -// @ts-ignore -import deepEqual from 'deep-is'; - import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { getActor } from 'azle/property_tests'; +import { deepEqual, getActor } from 'azle/property_tests'; import { Test } from 'azle/test'; import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; diff --git a/property_tests/tests/stable_b_tree_map/test/remove.ts b/property_tests/tests/stable_b_tree_map/test/remove.ts index 4ac97f4f89..40cf2ac0e7 100644 --- a/property_tests/tests/stable_b_tree_map/test/remove.ts +++ b/property_tests/tests/stable_b_tree_map/test/remove.ts @@ -1,10 +1,7 @@ import fc from 'fast-check'; -// @ts-ignore -import deepEqual from 'deep-is'; - import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { getActor } from 'azle/property_tests'; +import { deepEqual, getActor } from 'azle/property_tests'; import { Test } from 'azle/test'; import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; import { QueryMethod } from 'azle/property_tests/arbitraries/canister_methods/query_method_arb'; diff --git a/property_tests/tests/stable_b_tree_map/test/values.ts b/property_tests/tests/stable_b_tree_map/test/values.ts index 61ee962286..3bfb002858 100644 --- a/property_tests/tests/stable_b_tree_map/test/values.ts +++ b/property_tests/tests/stable_b_tree_map/test/values.ts @@ -1,10 +1,7 @@ import fc from 'fast-check'; -// @ts-ignore -import deepEqual from 'deep-is'; - import { StableBTreeMap } from 'azle/property_tests/arbitraries/stable_b_tree_map_arb'; -import { getActor } from 'azle/property_tests'; +import { deepEqual, getActor } from 'azle/property_tests'; import { Test } from 'azle/test'; import { getArrayForCandidType, getArrayStringForCandidType } from './utils'; import { UniqueIdentifierArb } from 'azle/property_tests/arbitraries/unique_identifier_arb'; diff --git a/property_tests/tests/text/test/generate_tests.ts b/property_tests/tests/text/test/generate_tests.ts index fe72aa108c..585c5bad49 100644 --- a/property_tests/tests/text/test/generate_tests.ts +++ b/property_tests/tests/text/test/generate_tests.ts @@ -1,7 +1,4 @@ -// @ts-ignore -import deepEqual from 'deep-is'; - -import { getActor, Named } from 'azle/property_tests'; +import { deepEqual, getActor, Named } from 'azle/property_tests'; import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; import { Test } from 'azle/test'; diff --git a/property_tests/tests/tuple/test/generate_tests.ts b/property_tests/tests/tuple/test/generate_tests.ts index 7300272946..bb4b11ed33 100644 --- a/property_tests/tests/tuple/test/generate_tests.ts +++ b/property_tests/tests/tuple/test/generate_tests.ts @@ -1,7 +1,4 @@ -// @ts-ignore -import deepEqual from 'deep-is'; - -import { getActor, Named } from 'azle/property_tests'; +import { deepEqual, getActor, Named } from 'azle/property_tests'; import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; import { Tuple, diff --git a/property_tests/tests/update_methods/test/generate_tests.ts b/property_tests/tests/update_methods/test/generate_tests.ts index 0f7b7cacd5..9220f55893 100644 --- a/property_tests/tests/update_methods/test/generate_tests.ts +++ b/property_tests/tests/update_methods/test/generate_tests.ts @@ -1,7 +1,4 @@ -// @ts-ignore -import deepEqual from 'deep-is'; - -import { Named, getActor } from 'azle/property_tests'; +import { deepEqual, Named, getActor } from 'azle/property_tests'; import { Test } from 'azle/test'; import { CandidReturnType } from 'azle/property_tests/arbitraries/candid/candid_return_type_arb'; import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; diff --git a/property_tests/tests/variant/test/generate_tests.ts b/property_tests/tests/variant/test/generate_tests.ts index 28c2cca5bf..9f877e1fbe 100644 --- a/property_tests/tests/variant/test/generate_tests.ts +++ b/property_tests/tests/variant/test/generate_tests.ts @@ -1,7 +1,4 @@ -// @ts-ignore -import deepEqual from 'deep-is'; - -import { getActor, Named } from 'azle/property_tests'; +import { deepEqual, getActor, Named } from 'azle/property_tests'; import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; import { Variant } from 'azle/property_tests/arbitraries/candid/constructed/variant_arb'; import { Test } from 'azle/test'; diff --git a/property_tests/tests/vec/test/generate_tests.ts b/property_tests/tests/vec/test/generate_tests.ts index e0784a649d..51b5f5c667 100644 --- a/property_tests/tests/vec/test/generate_tests.ts +++ b/property_tests/tests/vec/test/generate_tests.ts @@ -1,7 +1,4 @@ -// @ts-ignore -import deepEqual from 'deep-is'; - -import { getActor, Named } from 'azle/property_tests'; +import { deepEqual, getActor, Named } from 'azle/property_tests'; import { CandidValueAndMeta } from 'azle/property_tests/arbitraries/candid/candid_value_and_meta_arb'; import { Test } from 'azle/test';