Skip to content

Commit

Permalink
test: comment in the integration test to make it clear that we are te…
Browse files Browse the repository at this point in the history
…sting all three strategies
  • Loading branch information
ac10n committed May 2, 2024
1 parent 8adcdda commit ca022fd
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ CONFIGS().forEach(({ lib, rpc, setup }) => {

const ACCOUNT2_ADDRESS = 'tz1ZfrERcALBwmAqwonRXYVQBDT9BjNjBHJu'

// Runs the entire tests for a given fieldNumberingStrategy
const testContract = (strategy: FieldNumberingStrategy, innerObjectStartingIndex: number) => {
it(`Verify contract.originate for a contract with no annotations for methods using methodObjects with fieldNumberingStrategy: ${strategy}`, async () => {
Tezos.setFieldNumberingStrategy(strategy);
Expand Down Expand Up @@ -69,6 +70,8 @@ CONFIGS().forEach(({ lib, rpc, setup }) => {
expect(account1[ALLOWANCES].get(ACCOUNT2_ADDRESS).toString()).toEqual('1')
});
};

// Run the tests for all fieldNumberingStrategies
testContract('Legacy', 2);
testContract('ResetFieldNumbersInNestedObjects', 0);
testContract('Latest', 0);
Expand Down

0 comments on commit ca022fd

Please sign in to comment.