Skip to content

Commit 5bee34c

Browse files
committed
chore: test pass
1 parent 22c457f commit 5bee34c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/compiler-sfc/test/compileStyle.spec.ts

+4-4
Original file line numberDiff line numberDiff 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

5353
test('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

0 commit comments

Comments
 (0)