@@ -21,7 +21,7 @@ const renderWithTheme = (component) => {
21
21
} ;
22
22
23
23
describe ( 'ResponseSize' , ( ) => {
24
- describe ( 'Invalid or excluded values' , ( ) => {
24
+ describe ( 'Invalid or excluded size values' , ( ) => {
25
25
it ( 'should not render when size is undefined' , ( ) => {
26
26
const { container } = renderWithTheme ( < ResponseSize size = { undefined } /> ) ;
27
27
expect ( container ) . toBeEmptyDOMElement ( ) ;
@@ -58,7 +58,7 @@ describe('ResponseSize', () => {
58
58
} ) ;
59
59
} ) ;
60
60
61
- describe ( 'Valid values' , ( ) => {
61
+ describe ( 'Valid size values' , ( ) => {
62
62
it ( 'should handle zero bytes' , ( ) => {
63
63
renderWithTheme ( < ResponseSize size = { 0 } /> ) ;
64
64
const element = screen . getByText ( / 0 B / ) ;
@@ -75,7 +75,7 @@ describe('ResponseSize', () => {
75
75
expect ( element ) . toHaveAttribute ( 'title' , '500B' ) ;
76
76
} ) ;
77
77
78
- it ( 'should handle exactly 1024 bytes' , ( ) => {
78
+ it ( 'should handle exactly 1024 bytes as size ' , ( ) => {
79
79
renderWithTheme ( < ResponseSize size = { 1024 } /> ) ;
80
80
const element = screen . getByText ( / 1 0 2 4 B / ) ;
81
81
expect ( element ) . toBeInTheDocument ( ) ;
@@ -91,15 +91,15 @@ describe('ResponseSize', () => {
91
91
expect ( element ) . toHaveAttribute ( 'title' , '1,500B' ) ;
92
92
} ) ;
93
93
94
- it ( 'should handle large numbers' , ( ) => {
94
+ it ( 'should handle large size numbers' , ( ) => {
95
95
renderWithTheme ( < ResponseSize size = { 10240 } /> ) ;
96
96
const element = screen . getByText ( / 1 0 \. 0 K B / ) ;
97
97
expect ( element ) . toBeInTheDocument ( ) ;
98
98
expect ( element . textContent ) . toMatch ( / ^ \d + \. \d + K B $ / ) ;
99
99
expect ( element ) . toHaveAttribute ( 'title' , '10,240B' ) ;
100
100
} ) ;
101
101
102
- it ( 'should handle decimal numbers' , ( ) => {
102
+ it ( 'should handle decimal size numbers' , ( ) => {
103
103
renderWithTheme ( < ResponseSize size = { 1126.5 } /> ) ;
104
104
const element = screen . getByText ( / 1 \. 1 0 K B / ) ;
105
105
expect ( element ) . toBeInTheDocument ( ) ;
0 commit comments