Skip to content

Commit 414b792

Browse files
committed
Fix tests
1 parent 2dc5dd4 commit 414b792

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/index.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717

1818
import { promises as fs } from 'fs';
1919
import postcss from 'postcss';
20-
import plugin, { Options } from '../src';
20+
import plugin = require('../src');
2121
import { toShortName } from '../src/minimal-renamer';
2222

23-
async function run(input: string, options?: Options): Promise<postcss.Result> {
23+
async function run(input: string, options = {}): Promise<postcss.Result> {
2424
return await postcss([plugin(options)]).process(input, { from: undefined });
2525
}
2626

@@ -36,7 +36,7 @@ function assertPostcss(result: postcss.Result, output: string): void {
3636
async function assertMapEquals(
3737
input: string,
3838
expected: { [key: string]: string },
39-
options: Options = {}
39+
options = {}
4040
): Promise<void> {
4141
await run(input, {
4242
...options,

0 commit comments

Comments
 (0)