Skip to content

Commit

Permalink
Simplify test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Jan 5, 2023
1 parent 8323ba8 commit 54a5098
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/utils/__tests__/isStandardSyntaxDeclaration.test.js
Expand Up @@ -168,13 +168,7 @@ describe('isStandardSyntaxDeclaration', () => {
});

it('supports root-level declarations', () => {
const doc = new postcss.Document();
const root = postcss.parse('color: yellow;');

root.parent = doc;
doc.nodes.push(root);

expect(isStandardSyntaxDeclaration(root.nodes[0])).toBe(true);
expect(isStandardSyntaxDeclaration(decl('color: yellow;'))).toBe(true);
});
});

Expand Down

0 comments on commit 54a5098

Please sign in to comment.