@@ -98,7 +98,7 @@ func TestGlamourStyleColors(t *testing.T) {
98
98
}
99
99
for _ , tt := range tests {
100
100
t .Run (tt .name , func (t * testing.T ) {
101
- assert .Equal (t , tt .want , * tt .c .Code ())
101
+ assert .Equal (t , tt .want , * tt .c .code ())
102
102
})
103
103
}
104
104
}
@@ -134,31 +134,31 @@ func TestAccessibleStyleConfig(t *testing.T) {
134
134
135
135
func Test_accessibleDarkStyleConfig (t * testing.T ) {
136
136
cfg := accessibleDarkStyleConfig ()
137
- assert .Equal (t , white .Code (), cfg .Document .StylePrimitive .Color )
138
- assert .Equal (t , brightCyan .Code (), cfg .Link .Color )
139
- assert .Equal (t , brightMagenta .Code (), cfg .Heading .StylePrimitive .Color )
140
- assert .Equal (t , brightWhite .Code (), cfg .H1 .StylePrimitive .Color )
141
- assert .Equal (t , brightBlue .Code (), cfg .H1 .StylePrimitive .BackgroundColor )
142
- assert .Equal (t , brightWhite .Code (), cfg .Code .BackgroundColor )
143
- assert .Equal (t , red .Code (), cfg .Code .Color )
144
- assert .Equal (t , brightMagenta .Code (), cfg .Image .Color )
145
- assert .Equal (t , white .Code (), cfg .HorizontalRule .Color )
137
+ assert .Equal (t , white .code (), cfg .Document .StylePrimitive .Color )
138
+ assert .Equal (t , brightCyan .code (), cfg .Link .Color )
139
+ assert .Equal (t , brightMagenta .code (), cfg .Heading .StylePrimitive .Color )
140
+ assert .Equal (t , brightWhite .code (), cfg .H1 .StylePrimitive .Color )
141
+ assert .Equal (t , brightBlue .code (), cfg .H1 .StylePrimitive .BackgroundColor )
142
+ assert .Equal (t , brightWhite .code (), cfg .Code .BackgroundColor )
143
+ assert .Equal (t , red .code (), cfg .Code .Color )
144
+ assert .Equal (t , brightMagenta .code (), cfg .Image .Color )
145
+ assert .Equal (t , white .code (), cfg .HorizontalRule .Color )
146
146
147
147
// Test that we haven't changed the original style
148
148
assert .Equal (t , styles .DarkStyleConfig .H2 , cfg .H2 )
149
149
}
150
150
151
151
func Test_accessibleLightStyleConfig (t * testing.T ) {
152
152
cfg := accessibleLightStyleConfig ()
153
- assert .Equal (t , black .Code (), cfg .Document .StylePrimitive .Color )
154
- assert .Equal (t , brightBlue .Code (), cfg .Link .Color )
155
- assert .Equal (t , magenta .Code (), cfg .Heading .StylePrimitive .Color )
156
- assert .Equal (t , brightWhite .Code (), cfg .H1 .StylePrimitive .Color )
157
- assert .Equal (t , blue .Code (), cfg .H1 .StylePrimitive .BackgroundColor )
158
- assert .Equal (t , brightWhite .Code (), cfg .Code .BackgroundColor )
159
- assert .Equal (t , red .Code (), cfg .Code .Color )
160
- assert .Equal (t , magenta .Code (), cfg .Image .Color )
161
- assert .Equal (t , white .Code (), cfg .HorizontalRule .Color )
153
+ assert .Equal (t , black .code (), cfg .Document .StylePrimitive .Color )
154
+ assert .Equal (t , brightBlue .code (), cfg .Link .Color )
155
+ assert .Equal (t , magenta .code (), cfg .Heading .StylePrimitive .Color )
156
+ assert .Equal (t , brightWhite .code (), cfg .H1 .StylePrimitive .Color )
157
+ assert .Equal (t , blue .code (), cfg .H1 .StylePrimitive .BackgroundColor )
158
+ assert .Equal (t , brightWhite .code (), cfg .Code .BackgroundColor )
159
+ assert .Equal (t , red .code (), cfg .Code .Color )
160
+ assert .Equal (t , magenta .code (), cfg .Image .Color )
161
+ assert .Equal (t , white .code (), cfg .HorizontalRule .Color )
162
162
163
163
// Test that we haven't changed the original style
164
164
assert .Equal (t , styles .LightStyleConfig .H2 , cfg .H2 )
0 commit comments