Skip to content

Commit 03737b3

Browse files
committed
update tests
1 parent 0984835 commit 03737b3

File tree

4 files changed

+4
-4
lines changed
  • packages/svelte/tests

4 files changed

+4
-4
lines changed

packages/svelte/tests/compiler-errors/samples/css-global-block-declaration/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { test } from '../../test';
33
export default test({
44
error: {
55
code: 'css_global_block_invalid_declaration',
6-
message: 'A `:global {...}` block can only contain rules, not declarations',
6+
message: 'A top-level `:global {...}` block can only contain rules, not declarations',
77
position: [109, 119]
88
}
99
});

packages/svelte/tests/compiler-errors/samples/css-global-modifier-start-1/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { test } from '../../test';
33
export default test({
44
error: {
55
code: 'css_global_block_invalid_modifier_start',
6-
message: 'A `:global` selector at the very beginning cannot be modified by other selectors',
6+
message: 'A `:global` selector can only be modified if it is a descendant of other selectors',
77
position: [75, 77]
88
}
99
});

packages/svelte/tests/compiler-errors/samples/css-global-modifier-start-2/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { test } from '../../test';
33
export default test({
44
error: {
55
code: 'css_global_block_invalid_modifier_start',
6-
message: 'A `:global` selector at the very beginning cannot be modified by other selectors',
6+
message: 'A `:global` selector can only be modified if it is a descendant of other selectors',
77
position: [147, 148]
88
}
99
});

packages/svelte/tests/validator/samples/css-invalid-type-selector-placement/errors.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"code": "css_type_selector_invalid_placement",
4-
"message": "`:global(...)` must not be followed with a type selector",
4+
"message": "`:global(...)` must not be followed by a type selector",
55
"start": {
66
"line": 17,
77
"column": 14

0 commit comments

Comments
 (0)