Skip to content

Commit 265ff47

Browse files
committed
refactor(test): update stylelint import and usage
1 parent 8867d9f commit 265ff47

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/test-render-valid-css.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { describe, it, assert } from 'vitest';
2-
import { lint, LintResult } from 'stylelint';
2+
import stylelint from 'stylelint';
3+
import type { LintResult } from 'stylelint';
34
import type { RenderOptions } from '../src/common/types';
45
import { methods } from '../src/methods/methods-with-stylesheets';
56

@@ -65,7 +66,7 @@ describe('Test if valid CSS are rendered', () => {
6566
is_darkbg,
6667
})}`, async () => {
6768
const rendered = renderer.render(options_copy);
68-
const result_object = await lint({
69+
const result_object = await stylelint.lint({
6970
config: {
7071
extends: 'stylelint-config-standard',
7172
rules: {

0 commit comments

Comments
 (0)