Skip to content

Commit

Permalink
Merge pull request #22 from pagopa/fix-integration-tests
Browse files Browse the repository at this point in the history
fix: Integration test asserts
  • Loading branch information
gioelemella authored Dec 3, 2024
2 parents 74cf85d + f1c9808 commit 5bff866
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,16 @@ Then('the payment position operations have id {int}', function (id) {
});

Then('the operations have the fiscal code tokenized', function () {
assert.notStrictEqual(this.paymentPositionCreateOp.after.fiscalCode, this.paymentPositionFiscalCode);
assert.notStrictEqual(this.paymentPositionUpdateOp.after.fiscalCode, this.paymentPositionFiscalCode);
assert.notStrictEqual(this.paymentPositionCreateOp.after.fiscal_code, undefined);
assert.notStrictEqual(this.paymentPositionCreateOp.after.fiscal_code, this.paymentPositionFiscalCode);
assert.notStrictEqual(this.paymentPositionUpdateOp.after.fiscal_code, undefined);
assert.notStrictEqual(this.paymentPositionUpdateOp.after.fiscal_code, this.paymentPositionFiscalCode);
});

Then('the payment position update operation has the company name updated', function () {
assert.notStrictEqual(this.paymentPositionUpdateOp.after.companyName, this.paymentPositionCompanyName);
assert.strictEqual(this.paymentPositionUpdateOp.after.companyName, this.paymentPositionUpdatedCompanyName);
assert.notStrictEqual(this.paymentPositionUpdateOp.after.company_name, undefined);
assert.notStrictEqual(this.paymentPositionUpdateOp.after.company_name, this.paymentPositionCompanyName);
assert.strictEqual(this.paymentPositionUpdateOp.after.company_name, this.paymentPositionUpdatedCompanyName);
});

///////////////////////////
Expand Down

0 comments on commit 5bff866

Please sign in to comment.