mirror of https://github.com/vuejs/vue.git
chore: test pass
This commit is contained in:
parent
22c457fe24
commit
5bee34c6e1
|
@ -30,7 +30,7 @@ test('preprocess scss', () => {
|
||||||
const style = parse({
|
const style = parse({
|
||||||
source:
|
source:
|
||||||
'<style lang="scss">\n' +
|
'<style lang="scss">\n' +
|
||||||
'$red: rgb(255, 0, 0);\n' +
|
'$red: red;\n' +
|
||||||
'.color { color: $red; }\n' +
|
'.color { color: $red; }\n' +
|
||||||
'</style>\n',
|
'</style>\n',
|
||||||
filename: 'example.vue',
|
filename: 'example.vue',
|
||||||
|
@ -46,7 +46,7 @@ test('preprocess scss', () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
expect(result.errors.length).toBe(0)
|
expect(result.errors.length).toBe(0)
|
||||||
expect(result.code).toEqual(expect.stringContaining('color: red;'))
|
expect(result.code).toMatch('color: red;')
|
||||||
expect(result.map).toBeTruthy()
|
expect(result.map).toBeTruthy()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ test('preprocess sass', () => {
|
||||||
const style = parse({
|
const style = parse({
|
||||||
source:
|
source:
|
||||||
'<style lang="sass">\n' +
|
'<style lang="sass">\n' +
|
||||||
'$red: rgb(255, 0, 0)\n' +
|
'$red: red\n' +
|
||||||
'.color\n' +
|
'.color\n' +
|
||||||
' color: $red\n' +
|
' color: $red\n' +
|
||||||
'</style>\n',
|
'</style>\n',
|
||||||
|
@ -71,7 +71,7 @@ test('preprocess sass', () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
expect(result.errors.length).toBe(0)
|
expect(result.errors.length).toBe(0)
|
||||||
expect(result.code).toEqual(expect.stringContaining('color: red;'))
|
expect(result.code).toMatch('color: red;')
|
||||||
expect(result.map).toBeTruthy()
|
expect(result.map).toBeTruthy()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue