File tree 1 file changed +4
-4
lines changed
packages/compiler-sfc/test
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ test('preprocess scss', () => {
30
30
const style = parse ( {
31
31
source :
32
32
'<style lang="scss">\n' +
33
- '$red: rgb(255, 0, 0) ;\n' +
33
+ '$red: red ;\n' +
34
34
'.color { color: $red; }\n' +
35
35
'</style>\n' ,
36
36
filename : 'example.vue' ,
@@ -46,15 +46,15 @@ test('preprocess scss', () => {
46
46
} )
47
47
48
48
expect ( result . errors . length ) . toBe ( 0 )
49
- expect ( result . code ) . toEqual ( expect . stringContaining ( 'color: red;' ) )
49
+ expect ( result . code ) . toMatch ( 'color: red;' )
50
50
expect ( result . map ) . toBeTruthy ( )
51
51
} )
52
52
53
53
test ( 'preprocess sass' , ( ) => {
54
54
const style = parse ( {
55
55
source :
56
56
'<style lang="sass">\n' +
57
- '$red: rgb(255, 0, 0) \n' +
57
+ '$red: red \n' +
58
58
'.color\n' +
59
59
' color: $red\n' +
60
60
'</style>\n' ,
@@ -71,7 +71,7 @@ test('preprocess sass', () => {
71
71
} )
72
72
73
73
expect ( result . errors . length ) . toBe ( 0 )
74
- expect ( result . code ) . toEqual ( expect . stringContaining ( 'color: red;' ) )
74
+ expect ( result . code ) . toMatch ( 'color: red;' )
75
75
expect ( result . map ) . toBeTruthy ( )
76
76
} )
77
77
You can’t perform that action at this time.
0 commit comments