@centreon/ui 26.3.0 → 26.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -103,7 +103,7 @@ describe('Bar chart', () => {
|
|
|
103
103
|
cy.contains('Centreon-Server: Round-Trip Maximum Time').should(
|
|
104
104
|
'be.visible'
|
|
105
105
|
);
|
|
106
|
-
cy.contains('7.47
|
|
106
|
+
cy.contains('7.47 KiB').should('be.visible');
|
|
107
107
|
|
|
108
108
|
cy.makeSnapshot();
|
|
109
109
|
});
|
|
@@ -714,7 +714,7 @@ describe('Lines and bars', () => {
|
|
|
714
714
|
cy.findByLabelText('B').click();
|
|
715
715
|
|
|
716
716
|
cy.findAllByTestId('unit-selector').eq(0).should('have.value', 'B');
|
|
717
|
-
cy.contains('8.79
|
|
717
|
+
cy.contains('8.79 KiB').should('be.visible');
|
|
718
718
|
|
|
719
719
|
cy.findAllByTestId('unit-selector').eq(1).parent().click();
|
|
720
720
|
cy.findByLabelText('%').click();
|
|
@@ -374,10 +374,10 @@ describe('timeSeries', () => {
|
|
|
374
374
|
describe(formatMetricValue, () => {
|
|
375
375
|
const cases: Array<TestCase> = [
|
|
376
376
|
[218857269, '', 1000, '218.86m'],
|
|
377
|
-
[218857269, '', 1024, '208.72
|
|
377
|
+
[218857269, '', 1024, '208.72 Mi'],
|
|
378
378
|
[0.12232323445, '', 1000, '0.12'],
|
|
379
|
-
[1024, 'B', 1000, '1
|
|
380
|
-
[1024, 'B', 1024, '1
|
|
379
|
+
[1024, 'B', 1000, '1 KiB'],
|
|
380
|
+
[1024, 'B', 1024, '1 KiB'],
|
|
381
381
|
[null, 'B', 1024, null]
|
|
382
382
|
];
|
|
383
383
|
|
|
@@ -573,7 +573,7 @@ describe('Format value with unit', () => {
|
|
|
573
573
|
return '324.23m';
|
|
574
574
|
}
|
|
575
575
|
|
|
576
|
-
return `309.21
|
|
576
|
+
return `309.21 Mi${unit}`;
|
|
577
577
|
};
|
|
578
578
|
|
|
579
579
|
const humanReadableTestCases = units.map((unit) => {
|