Skip to content

Commit

Permalink
Fix prettier build
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanZim committed Sep 16, 2017
1 parent 80cadec commit 579e9ba
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions test/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,13 @@ test("should ignore & adjust external import", checkFixture, "ignore")

test("should not fail with only one absolute import", t => {
const base = "@import url(http://)"
return postcss().use(atImport()).process(base).then(result => {
t.is(result.warnings().length, 0)
t.is(result.css, base)
})
return postcss()
.use(atImport())
.process(base)
.then(result => {
t.is(result.warnings().length, 0)
t.is(result.css, base)
})
})

test("should not fail with absolute and local import", t => {
Expand Down Expand Up @@ -85,7 +88,10 @@ test(
)

test("should work with no styles without throwing an error", t => {
return postcss().use(atImport()).process("").then(result => {
t.is(result.warnings().length, 0)
})
return postcss()
.use(atImport())
.process("")
.then(result => {
t.is(result.warnings().length, 0)
})
})

0 comments on commit 579e9ba

Please sign in to comment.