Skip to content

Commit

Permalink
patch tests for temporary behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
ryley-o committed Feb 1, 2023
1 parent a8885d1 commit fc34d92
Showing 1 changed file with 25 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,18 @@ test(`${coreType}/MinterUpdated: should list invalid MinterFilter with different
"updatedAt",
updateCallBlockTimestamp.toString()
);
// minter filter should NOT be added to store for engine contracts
assert.notInStore(
// patch: minter filter should be added for all engine contracts, temporarily
assert.fieldEquals(
MINTER_FILTER_ENTITY_TYPE,
TEST_MINTER_FILTER_ADDRESS.toHexString(),
"id",
TEST_MINTER_FILTER_ADDRESS.toHexString()
);
// // minter filter should NOT be added to store for engine contracts
// assert.notInStore(
// MINTER_FILTER_ENTITY_TYPE,
// TEST_MINTER_FILTER_ADDRESS.toHexString()
// );
});

test(`${coreType}/MinterUpdated: should create Contract but NOT MinterFilter entities when not yet created, and NOT assign minterFilter`, () => {
Expand Down Expand Up @@ -171,12 +178,19 @@ test(`${coreType}/MinterUpdated: should create Contract but NOT MinterFilter ent
// handle event
handleMinterUpdated(event);
// assertions
// patch: minter filter should be added for all engine contracts, temporarily
assert.fieldEquals(
CONTRACT_ENTITY_TYPE,
TEST_CONTRACT_ADDRESS.toHexString(),
"minterFilter",
"null"
TEST_MINTER_FILTER_ADDRESS.toHexString()
);
// assert.fieldEquals(
// CONTRACT_ENTITY_TYPE,
// TEST_CONTRACT_ADDRESS.toHexString(),
// "minterFilter",
// "null"
// );
assert.fieldEquals(
CONTRACT_ENTITY_TYPE,
TEST_CONTRACT_ADDRESS.toHexString(),
Expand All @@ -189,10 +203,17 @@ test(`${coreType}/MinterUpdated: should create Contract but NOT MinterFilter ent
"updatedAt",
updateCallBlockTimestamp.toString()
);
assert.notInStore(
// patch: minter filter should be added for all engine contracts, temporarily
assert.fieldEquals(
MINTER_FILTER_ENTITY_TYPE,
TEST_MINTER_FILTER_ADDRESS.toHexString(),
"id",
TEST_MINTER_FILTER_ADDRESS.toHexString()
);
// assert.notInStore(
// MINTER_FILTER_ENTITY_TYPE,
// TEST_MINTER_FILTER_ADDRESS.toHexString()
// );
});

test(`${coreType}/MinterUpdated: should populate project minter configurations for all projects preconfigured on existing minter filter`, () => {
Expand Down

0 comments on commit fc34d92

Please sign in to comment.