Skip to content

Commit fb70ca9

Browse files
committed
Clean up tests
1 parent 0d89106 commit fb70ca9

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

test/types.ts

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,12 @@ const plugin: PluginCreator<string> = prop => {
1414

1515
plugin.postcss = true
1616

17-
interface StyleCompileResults {
18-
code: string
19-
map: SourceMap | undefined
20-
}
21-
2217
const processResult: Promise<Result> | Result = postcss([
2318
plugin
2419
]).process('h1{color: black;}', { from: undefined })
25-
const processed:
26-
| StyleCompileResults
27-
| Promise<StyleCompileResults> = processResult.then(result => ({
28-
code: result.css,
29-
map: result.map
30-
}))
20+
21+
processResult.then((result: Result) => {
22+
console.log(result.css)
23+
})
3124

3225
export default plugin

0 commit comments

Comments
 (0)