File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/compiler-sfc/test Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ test('preprocess scss', () => {
3030 const style = parse ( {
3131 source :
3232 '<style lang="scss">\n' +
33- '$red: rgb(255, 0, 0) ;\n' +
33+ '$red: red ;\n' +
3434 '.color { color: $red; }\n' +
3535 '</style>\n' ,
3636 filename : 'example.vue' ,
@@ -46,15 +46,15 @@ test('preprocess scss', () => {
4646 } )
4747
4848 expect ( result . errors . length ) . toBe ( 0 )
49- expect ( result . code ) . toEqual ( expect . stringContaining ( 'color: red;' ) )
49+ expect ( result . code ) . toMatch ( 'color: red;' )
5050 expect ( result . map ) . toBeTruthy ( )
5151} )
5252
5353test ( 'preprocess sass' , ( ) => {
5454 const style = parse ( {
5555 source :
5656 '<style lang="sass">\n' +
57- '$red: rgb(255, 0, 0) \n' +
57+ '$red: red \n' +
5858 '.color\n' +
5959 ' color: $red\n' +
6060 '</style>\n' ,
@@ -71,7 +71,7 @@ test('preprocess sass', () => {
7171 } )
7272
7373 expect ( result . errors . length ) . toBe ( 0 )
74- expect ( result . code ) . toEqual ( expect . stringContaining ( 'color: red;' ) )
74+ expect ( result . code ) . toMatch ( 'color: red;' )
7575 expect ( result . map ) . toBeTruthy ( )
7676} )
7777
You can’t perform that action at this time.
0 commit comments