@@ -52,7 +52,7 @@ test('Renders Default component', () => {
52
52
53
53
const styles = heading && getComputedStyle(heading);
54
54
const colorHex = styles && rgbToHex(styles.color).toUpperCase();
55
- expect(colorHex).toBe(color.green );
55
+ expect(colorHex).toBe(color.mint40 );
56
56
57
57
const text = screen.getByTestId(testText);
58
58
expect(text).not.toBeNull();
@@ -85,7 +85,7 @@ test('changes UI onClick of the button', () => {
85
85
86
86
const styles = headingElement && getComputedStyle(headingElement);
87
87
const colorHex = styles && rgbToHex(styles.color).toUpperCase();
88
- expect(colorHex).toBe(color.red );
88
+ expect(colorHex).toBe(color.red40 );
89
89
});
90
90
91
91
// Test Story 3: InitializeRed
@@ -110,7 +110,7 @@ test('Renders InitializeRed', () => {
110
110
111
111
const styles = heading && getComputedStyle(heading);
112
112
const colorHex = styles && rgbToHex(styles.color).toUpperCase();
113
- expect(colorHex).toBe(color.red );
113
+ expect(colorHex).toBe(color.red40 );
114
114
115
115
const text = screen.getByTestId(testText);
116
116
expect(text).not.toBeNull();
@@ -142,7 +142,7 @@ test('changes UI onClick of the button', () => {
142
142
143
143
const styles = headingElement && getComputedStyle(headingElement);
144
144
const colorHex = styles && rgbToHex(styles.color).toUpperCase();
145
- expect(colorHex).toBe(color.green );
145
+ expect(colorHex).toBe(color.mint40 );
146
146
});
147
147
148
148
// Test Story 4: UnderLinedText
@@ -167,7 +167,7 @@ test('Renders UnderLinedText', () => {
167
167
168
168
const styles = heading && getComputedStyle(heading);
169
169
const colorHex = styles && rgbToHex(styles.color).toUpperCase();
170
- expect(colorHex).toBe(color.green );
170
+ expect(colorHex).toBe(color.mint40 );
171
171
172
172
const text = screen.getByTestId(testText);
173
173
expect(text).not.toBeNull();
@@ -198,5 +198,5 @@ test('changes UI onClick of the button', () => {
198
198
199
199
const styles = headingElement && getComputedStyle(headingElement);
200
200
const colorHex = styles && rgbToHex(styles.color).toUpperCase();
201
- expect(colorHex).toBe(color.red );
201
+ expect(colorHex).toBe(color.red40 );
202
202
});
0 commit comments