From dd99273bbf93a16d1d6dd019b0848bfdd7c79fcb Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Wed, 16 Feb 2022 21:06:41 +0800 Subject: [PATCH] chore: update tests --- packages/uni-nvue-styler/__tests__/combinators.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/uni-nvue-styler/__tests__/combinators.spec.ts b/packages/uni-nvue-styler/__tests__/combinators.spec.ts index 2d82425b6..019031550 100644 --- a/packages/uni-nvue-styler/__tests__/combinators.spec.ts +++ b/packages/uni-nvue-styler/__tests__/combinators.spec.ts @@ -14,11 +14,11 @@ async function objectifierRule(input: string) { describe('nvue-styler: combinators', () => { test('descendant', async () => { 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({ bar: { - left: 5, + '!left': 5, }, '.bar': { '.foo': { -- GitLab