@@ -30,37 +30,37 @@ describe('BytesPipe', () => {
30
30
} ) ;
31
31
32
32
33
- it ( 'Should return 1 KB ' , ( ) => {
33
+ it ( 'Should return 1 kB ' , ( ) => {
34
34
35
35
const result = pipe . transform ( 1024 , 0 ) ;
36
- expect ( result ) . toEqual ( '1 KB ' ) ;
36
+ expect ( result ) . toEqual ( '1 kB ' ) ;
37
37
} ) ;
38
38
39
- it ( 'Should return 1 KB #2' , ( ) => {
39
+ it ( 'Should return 1 kB #2' , ( ) => {
40
40
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 ' ) ;
43
43
} ) ;
44
44
45
- it ( 'Should return 890 KB ' , ( ) => {
45
+ it ( 'Should return 890 kB ' , ( ) => {
46
46
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 ' ) ;
50
50
} ) ;
51
51
52
- it ( 'Should return 890 KB #2' , ( ) => {
52
+ it ( 'Should return 890 kB #2' , ( ) => {
53
53
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 ' ) ;
56
56
} ) ;
57
57
58
58
59
- it ( 'Should return 1023 KB ' , ( ) => {
59
+ it ( 'Should return 1023 kB ' , ( ) => {
60
60
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 ' ) ;
64
64
} ) ;
65
65
66
66
it ( 'Should return 241 MB' , ( ) => {
@@ -93,8 +93,8 @@ describe('BytesPipe', () => {
93
93
94
94
it ( 'Should return 1023 MB #2' , ( ) => {
95
95
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 ' ) ;
98
98
expect ( result ) . toEqual ( '1023 MB' ) ;
99
99
} ) ;
100
100
0 commit comments