-
Notifications
You must be signed in to change notification settings - Fork 114
Expand file tree
/
Copy pathlayer.js
More file actions
59 lines (49 loc) · 1.33 KB
/
layer.js
File metadata and controls
59 lines (49 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
"use strict"
// external tooling
const test = require("ava")
// internal tooling
const checkFixture = require("./helpers/check-fixture")
test("should resolve layers of import statements", checkFixture, "layer")
test(
"should correctly wrap imported at rules in layers",
checkFixture,
"layer-import-atrules",
)
test(
"should correctly wrap imported at rules in anonymous layers",
checkFixture,
"layer-import-atrules-anonymous",
)
test(
"should correctly handle duplicate anonymous imports",
checkFixture,
"layer-duplicate-anonymous-imports",
{
skipDuplicates: false,
},
)
test(
"should correctly handle duplicate anonymous imports and skip duplicates is true",
checkFixture,
"layer-duplicate-anonymous-imports-skip",
)
test(
"should correctly handle layer statements followed by ignored imports",
checkFixture,
"layer-followed-by-ignore",
)
test(
"should correctly handle layer statements followed by ignored imports in conditional imports",
checkFixture,
"layer-followed-by-ignore-with-conditions",
)
test(
"should correctly handle layer statements followed by ignored imports in unconditional imports",
checkFixture,
"layer-followed-by-ignore-without-conditions",
)
test(
"should correctly handle layer statements in conditional imports",
checkFixture,
"layer-statement-with-conditions",
)