提交 dd99273b 编写于 作者: fxy060608's avatar fxy060608

chore: update tests

上级 8d8f7c7a
...@@ -14,11 +14,11 @@ async function objectifierRule(input: string) { ...@@ -14,11 +14,11 @@ async function objectifierRule(input: string) {
describe('nvue-styler: combinators', () => { describe('nvue-styler: combinators', () => {
test('descendant', async () => { test('descendant', async () => {
const { json, messages } = await objectifierRule( const { json, messages } = await objectifierRule(
` .bar {left:5;}.foo .bar {left: 0!important;}.foo .bar{left:5;right:5;right:10!important}.bar .bar{left:2}.foo .bar .foobar{left:1}` ` .bar {left:5!important;}.foo .bar {left: 0!important;}.foo .bar{left:5;right:5;right:10!important}.bar .bar{left:2}.foo .bar .foobar{left:1}`
) )
expect(json).toEqual({ expect(json).toEqual({
bar: { bar: {
left: 5, '!left': 5,
}, },
'.bar': { '.bar': {
'.foo': { '.foo': {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册