mgr/dashboard: Fix formatter service unit test

Signed-off-by: Tiago Melo <tmelo@suse.com>
This commit is contained in:
Tiago Melo 2018-05-30 13:20:05 +01:00
parent f21df7672d
commit 5058ff9607

View File

@ -68,7 +68,7 @@ describe('FormatterService', () => {
});
it('should test some dimless values', () => {
expect(dimlessPipe.transform(0.6)).toBe('0.6 ');
expect(dimlessPipe.transform(0.6)).toBe('0.6');
expect(dimlessPipe.transform(1000.608)).toBe('1.0006k');
expect(dimlessPipe.transform(1e10)).toBe('10G');
expect(dimlessPipe.transform(2.37e16)).toBe('23.7P');