ui: fix tests broken by d3-format upgrade

This commit is contained in:
Luiz Aoqui 2021-11-04 19:07:55 -04:00
parent 6cdc5f349a
commit e21dd8c256
No known key found for this signature in database
GPG Key ID: 29F459C0D9CBB573
1 changed files with 2 additions and 1 deletions

View File

@ -113,9 +113,10 @@ module('Integration | Component | das/recommendation-card', function(hooks) {
assert.ok(RecommendedMemory.isIncrease); assert.ok(RecommendedMemory.isIncrease);
}); });
assert.equal(RecommendationCard.totalsTable.unitDiff.cpu, '75 MHz'); assert.equal(RecommendationCard.totalsTable.unitDiff.cpu, '-75 MHz');
assert.equal(RecommendationCard.totalsTable.unitDiff.memory, '+128 MiB'); assert.equal(RecommendationCard.totalsTable.unitDiff.memory, '+128 MiB');
// Expected signal has a minus character, not a hyphen.
assert.equal(RecommendationCard.totalsTable.percentDiff.cpu, '27%'); assert.equal(RecommendationCard.totalsTable.percentDiff.cpu, '27%');
assert.equal(RecommendationCard.totalsTable.percentDiff.memory, '+33%'); assert.equal(RecommendationCard.totalsTable.percentDiff.memory, '+33%');