@@ -2,28 +2,28 @@ import {formatSize, generateTestChangesSummary} from '../utils/format';
2
2
3
3
describe ( 'format utils' , ( ) => {
4
4
describe ( 'formatSize' , ( ) => {
5
- it ( 'should format size in KB when less than 1024 bytes' , ( ) => {
5
+ test ( 'should format size in KB when less than 1024 bytes' , ( ) => {
6
6
const size = 512 ; // 512 bytes
7
7
expect ( formatSize ( size ) ) . toBe ( '0.50 KB' ) ;
8
8
} ) ;
9
9
10
- it ( 'should format size in MB when greater than or equal to 1024 bytes' , ( ) => {
10
+ test ( 'should format size in MB when greater than or equal to 1024 bytes' , ( ) => {
11
11
const size = 2.5 * 1024 ; // 2.5 KB -> will be shown in MB
12
12
expect ( formatSize ( size ) ) . toBe ( '2.50 KB' ) ;
13
13
} ) ;
14
14
15
- it ( 'should handle small sizes' , ( ) => {
15
+ test ( 'should handle small sizes' , ( ) => {
16
16
const size = 100 ; // 100 bytes
17
17
expect ( formatSize ( size ) ) . toBe ( '0.10 KB' ) ;
18
18
} ) ;
19
19
20
- it ( 'should handle zero' , ( ) => {
20
+ test ( 'should handle zero' , ( ) => {
21
21
expect ( formatSize ( 0 ) ) . toBe ( '0.00 KB' ) ;
22
22
} ) ;
23
23
} ) ;
24
24
25
25
describe ( 'generateTestChangesSummary' , ( ) => {
26
- it ( 'should generate summary for new tests only' , ( ) => {
26
+ test ( 'should generate summary for new tests only' , ( ) => {
27
27
const comparison = {
28
28
new : [ 'Test 1 (file1.ts)' , 'Test 2 (file2.ts)' ] ,
29
29
skipped : [ ] ,
@@ -38,7 +38,7 @@ describe('format utils', () => {
38
38
expect ( summary ) . not . toContain ( '🗑️ Deleted Tests' ) ;
39
39
} ) ;
40
40
41
- it ( 'should generate summary for skipped tests only' , ( ) => {
41
+ test ( 'should generate summary for skipped tests only' , ( ) => {
42
42
const comparison = {
43
43
new : [ ] ,
44
44
skipped : [ 'Test 1 (file1.ts)' , 'Test 2 (file2.ts)' ] ,
@@ -53,7 +53,7 @@ describe('format utils', () => {
53
53
expect ( summary ) . not . toContain ( '🗑️ Deleted Tests' ) ;
54
54
} ) ;
55
55
56
- it ( 'should generate summary for deleted tests only' , ( ) => {
56
+ test ( 'should generate summary for deleted tests only' , ( ) => {
57
57
const comparison = {
58
58
new : [ ] ,
59
59
skipped : [ ] ,
@@ -68,7 +68,7 @@ describe('format utils', () => {
68
68
expect ( summary ) . not . toContain ( '⏭️ Skipped Tests' ) ;
69
69
} ) ;
70
70
71
- it ( 'should generate summary for all types of changes' , ( ) => {
71
+ test ( 'should generate summary for all types of changes' , ( ) => {
72
72
const comparison = {
73
73
new : [ 'New Test (file1.ts)' ] ,
74
74
skipped : [ 'Skipped Test (file2.ts)' ] ,
@@ -84,7 +84,7 @@ describe('format utils', () => {
84
84
expect ( summary ) . toContain ( 'Deleted Test (file3.ts)' ) ;
85
85
} ) ;
86
86
87
- it ( 'should handle no changes' , ( ) => {
87
+ test ( 'should handle no changes' , ( ) => {
88
88
const comparison = {
89
89
new : [ ] ,
90
90
skipped : [ ] ,
0 commit comments