Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit 8297eeb

Browse files
committed
tests: fix test for new kilo prefix
1 parent 2291842 commit 8297eeb

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

src/math/bytes.pipe.spec.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -30,37 +30,37 @@ describe('BytesPipe', () => {
3030
});
3131

3232

33-
it('Should return 1 KB', () => {
33+
it('Should return 1 kB', () => {
3434

3535
const result = pipe.transform(1024, 0);
36-
expect(result).toEqual('1 KB');
36+
expect(result).toEqual('1 kB');
3737
});
3838

39-
it('Should return 1 KB #2', () => {
39+
it('Should return 1 kB #2', () => {
4040

41-
const result = pipe.transform(1, 0, 'KB');
42-
expect(result).toEqual('1 KB');
41+
const result = pipe.transform(1, 0, 'kB');
42+
expect(result).toEqual('1 kB');
4343
});
4444

45-
it('Should return 890 KB', () => {
45+
it('Should return 890 kB', () => {
4646

47-
const kb = 1024 * 890;
48-
const result = pipe.transform(kb, 0);
49-
expect(result).toEqual('890 KB');
47+
const kB = 1024 * 890;
48+
const result = pipe.transform(kB, 0);
49+
expect(result).toEqual('890 kB');
5050
});
5151

52-
it('Should return 890 KB #2', () => {
52+
it('Should return 890 kB #2', () => {
5353

54-
const result = pipe.transform(890, 0, 'KB');
55-
expect(result).toEqual('890 KB');
54+
const result = pipe.transform(890, 0, 'kB');
55+
expect(result).toEqual('890 kB');
5656
});
5757

5858

59-
it('Should return 1023 KB', () => {
59+
it('Should return 1023 kB', () => {
6060

61-
const kb = 1024 * 1023;
62-
const result = pipe.transform(kb, 0);
63-
expect(result).toEqual('1023 KB');
61+
const kB = 1024 * 1023;
62+
const result = pipe.transform(kB, 0);
63+
expect(result).toEqual('1023 kB');
6464
});
6565

6666
it('Should return 241 MB', () => {
@@ -93,8 +93,8 @@ describe('BytesPipe', () => {
9393

9494
it('Should return 1023 MB #2', () => {
9595

96-
const kb = 1024 * 1023;
97-
const result = pipe.transform(kb, 2, 'KB');
96+
const kB = 1024 * 1023;
97+
const result = pipe.transform(kB, 2, 'kB');
9898
expect(result).toEqual('1023 MB');
9999
});
100100

0 commit comments

Comments
 (0)