We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fee216e commit 405b015Copy full SHA for 405b015
test/import.js
@@ -46,6 +46,17 @@ test("should not fail with absolute and local import", t => {
46
.then(result => t.is(result.css, "@import url('http://');\nfoo{}"))
47
})
48
49
+test("should keep @charset first", t => {
50
+ const base = "@charset 'utf-8';\n@import url(http://)"
51
+ return postcss()
52
+ .use(atImport())
53
+ .process(base, { from: undefined })
54
+ .then(result => {
55
+ t.is(result.warnings().length, 0)
56
+ t.is(result.css, base)
57
+ })
58
+})
59
+
60
test("should error when file not found", t => {
61
t.plan(1)
62
const file = "test/fixtures/imports/import-missing.css"
0 commit comments