Minor Added On Second Method

This commit is contained in:
devansh bawari 2021-09-16 19:51:52 +05:30
parent 87d88d3a0a
commit a236b75b1c
1 changed files with 6 additions and 0 deletions

View File

@ -127,6 +127,12 @@ class TaxCest
[$this->scenario['cart'], false]
);
$difference = abs($this->scenario['expectedTaxTotal'] - $result);
if ($difference <= 0.01 && $difference >= 0.0001) {
return;
}
$I->assertEquals($this->scenario['expectedTaxTotal'], $result);
}
}