@centreon/ui 25.10.8 → 25.10.10
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
|
@@ -100,7 +100,7 @@ describe('Bar chart', () => {
|
|
|
100
100
|
cy.contains('Centreon-Server: Round-Trip Maximum Time').should(
|
|
101
101
|
'be.visible'
|
|
102
102
|
);
|
|
103
|
-
cy.contains('7.47
|
|
103
|
+
cy.contains('7.47 KiB').should('be.visible');
|
|
104
104
|
|
|
105
105
|
cy.makeSnapshot();
|
|
106
106
|
});
|
|
@@ -713,7 +713,7 @@ describe('Lines and bars', () => {
|
|
|
713
713
|
cy.findByLabelText('B').click();
|
|
714
714
|
|
|
715
715
|
cy.findAllByTestId('unit-selector').eq(0).should('have.value', 'B');
|
|
716
|
-
cy.contains('8.79
|
|
716
|
+
cy.contains('8.79 KiB').should('be.visible');
|
|
717
717
|
|
|
718
718
|
cy.findAllByTestId('unit-selector').eq(1).parent().click();
|
|
719
719
|
cy.findByLabelText('%').click();
|
|
@@ -362,10 +362,10 @@ describe('timeSeries', () => {
|
|
|
362
362
|
describe(formatMetricValue, () => {
|
|
363
363
|
const cases: Array<TestCase> = [
|
|
364
364
|
[218857269, '', 1000, '218.86m'],
|
|
365
|
-
[218857269, '', 1024, '208.72
|
|
365
|
+
[218857269, '', 1024, '208.72 Mi'],
|
|
366
366
|
[0.12232323445, '', 1000, '0.12'],
|
|
367
|
-
[1024, 'B', 1000, '1
|
|
368
|
-
[1024, 'B', 1024, '1
|
|
367
|
+
[1024, 'B', 1000, '1 KiB'],
|
|
368
|
+
[1024, 'B', 1024, '1 KiB'],
|
|
369
369
|
[null, 'B', 1024, null]
|
|
370
370
|
];
|
|
371
371
|
|
|
@@ -553,7 +553,7 @@ describe('Format value with unit', () => {
|
|
|
553
553
|
return '324.23m';
|
|
554
554
|
}
|
|
555
555
|
|
|
556
|
-
return `309.21
|
|
556
|
+
return `309.21 Mi${unit}`;
|
|
557
557
|
};
|
|
558
558
|
|
|
559
559
|
const humanReadableTestCases = units.map((unit) => {
|