Skip to content

Commit a6f8931

Browse files
committed
test: update test expectations for new version
1 parent 5e476c7 commit a6f8931

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

playground/stylelint-default/__tests__/__snapshots__/test.spec.ts.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

3-
exports[`stylelint > serve > get initial error and subsequent error 1`] = `"[{"checkerId":"Stylelint","frame":" > 1 | #root {/n | ^/n > 2 | }/n | ^^/n 3 |/n 4 | body {/n 5 | color: rgb(0, 0, 0);","id":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","level":1,"loc":{"column":7,"file":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","line":1},"message":"Unexpected empty block (block-no-empty) (block-no-empty)","stack":""},{"checkerId":"Stylelint","frame":" 3 |/n 4 | body {/n > 5 | color: rgb(0, 0, 0);/n | ^^^^^^^^^^^^/n 6 | }/n 7 |","id":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","level":1,"loc":{"column":10,"file":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","line":5},"message":"Expected modern color-function notation (color-function-notation) (color-function-notation)","stack":""}]"`;
3+
exports[`stylelint > serve > get initial error and subsequent error 1`] = `"[{"checkerId":"Stylelint","frame":" > 1 | #root {/n | ^/n > 2 | }/n | ^^/n 3 |/n 4 | body {/n 5 | color: rgb(0, 0, 0);","id":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","level":1,"loc":{"column":7,"file":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","line":1},"message":"Empty block (block-no-empty) (block-no-empty)","stack":""},{"checkerId":"Stylelint","frame":" 3 |/n 4 | body {/n > 5 | color: rgb(0, 0, 0);/n | ^^^^^^^^^^^^/n 6 | }/n 7 |","id":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","level":1,"loc":{"column":10,"file":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","line":5},"message":"Expected modern color-function notation (color-function-notation) (color-function-notation)","stack":""}]"`;
44

55
exports[`stylelint > serve > get initial error and subsequent error 2`] = `
66
[
7-
" ERROR(Stylelint) Unexpected empty block (block-no-empty) (block-no-empty)
7+
" ERROR(Stylelint) Empty block (block-no-empty) (block-no-empty)
88
FILE <PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css:1:7
99
1010
> 1 | #root {
@@ -29,11 +29,11 @@ exports[`stylelint > serve > get initial error and subsequent error 2`] = `
2929
]
3030
`;
3131
32-
exports[`stylelint > serve > get initial error and subsequent error 3`] = `"[{"checkerId":"Stylelint","frame":" > 1 | #root {/n | ^/n > 2 | }/n | ^^/n 3 |/n 4 | body {/n 5 | color: rgb(0, 0, 0);","id":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","level":1,"loc":{"column":7,"file":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","line":1},"message":"Unexpected empty block (block-no-empty) (block-no-empty)","stack":""},{"checkerId":"Stylelint","frame":" 3 |/n 4 | body {/n > 5 | color: rgb(0, 0, 0);/n | ^^^^^^^^^^^^/n 6 | }/n 7 |","id":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","level":1,"loc":{"column":10,"file":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","line":5},"message":"Expected modern color-function notation (color-function-notation) (color-function-notation)","stack":""},{"checkerId":"Stylelint","frame":" > 1 | #root {/n | ^/n > 2 | }/n | ^^/n 3 |/n 4 | body {/n 5 | color: #fff;","id":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","level":1,"loc":{"column":7,"file":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","line":1},"message":"Unexpected empty block (block-no-empty) (block-no-empty)","stack":""}]"`;
32+
exports[`stylelint > serve > get initial error and subsequent error 3`] = `"[{"checkerId":"Stylelint","frame":" > 1 | #root {/n | ^/n > 2 | }/n | ^^/n 3 |/n 4 | body {/n 5 | color: rgb(0, 0, 0);","id":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","level":1,"loc":{"column":7,"file":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","line":1},"message":"Empty block (block-no-empty) (block-no-empty)","stack":""},{"checkerId":"Stylelint","frame":" 3 |/n 4 | body {/n > 5 | color: rgb(0, 0, 0);/n | ^^^^^^^^^^^^/n 6 | }/n 7 |","id":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","level":1,"loc":{"column":10,"file":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","line":5},"message":"Expected modern color-function notation (color-function-notation) (color-function-notation)","stack":""},{"checkerId":"Stylelint","frame":" > 1 | #root {/n | ^/n > 2 | }/n | ^^/n 3 |/n 4 | body {/n 5 | color: #fff;","id":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","level":1,"loc":{"column":7,"file":"<PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css","line":1},"message":"Empty block (block-no-empty) (block-no-empty)","stack":""}]"`;
3333
3434
exports[`stylelint > serve > get initial error and subsequent error 4`] = `
3535
[
36-
" ERROR(Stylelint) Unexpected empty block (block-no-empty) (block-no-empty)
36+
" ERROR(Stylelint) Empty block (block-no-empty) (block-no-empty)
3737
FILE <PROJECT_ROOT>/playground-temp/stylelint-default/src/style.css:1:7
3838
3939
> 1 | #root {

playground/stylelint-default/__tests__/test.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('stylelint', () => {
3030
})
3131

3232
describe.runIf(isBuild)('build', () => {
33-
const expectedMsg = ['Unexpected empty block', 'Expected modern color-function notation']
33+
const expectedMsg = ['Empty block', 'Expected modern color-function notation']
3434

3535
it('should fail', async () => {
3636
expectStderrContains(log, expectedMsg)

0 commit comments

Comments
 (0)