-
Notifications
You must be signed in to change notification settings - Fork 14
/
.tape.js
89 lines (89 loc) · 1.9 KB
/
.tape.js
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
module.exports = {
'basic': {
message: 'supports basic usage'
},
'basic:colors': {
message: 'supports { stringifier } usage',
options: {
stringifier: color => color.toString()
}
},
'basic:transformvars': {
message: 'supports { transformVars: false } usage',
options: {
transformVars: false
},
error: {
reason: 'Expected a color'
}
},
'warn': {
message: 'supports { unresolved } usage',
options: {
unresolved: 'warn'
},
warnings: 43,
expect: 'warn.css'
},
'hex': {
message: 'supports hex usage'
},
'import': {
message: 'supports { importFrom: "test/import-root.css" } usage',
options: {
importFrom: 'test/import-root.css'
}
},
'import:array': {
message: 'supports { importFrom: ["test/import-root.css"] } usage',
options: {
importFrom: ['test/import-root.css']
},
expect: 'import.expect.css',
result: 'import.result.css'
},
'import:array-array': {
message: 'supports { importFrom: [["css", "test/import-root.css" ]] } usage',
options: {
importFrom: { from: 'test/import-root.css', type: 'css' }
},
expect: 'import.expect.css',
result: 'import.result.css'
},
'import:js': {
message: 'supports { importFrom: "test/import-root.js" } usage',
options: {
importFrom: 'test/import-root.js'
},
expect: 'import.expect.css',
result: 'import.result.css'
},
'import:json': {
message: 'supports { importFrom: "test/import-root.json" } usage',
options: {
importFrom: 'test/import-root.json'
},
expect: 'import.expect.css',
result: 'import.result.css'
},
'import:object': {
message: 'supports { importFrom: { customProperties: {} } } usage',
options: {
importFrom: [
{
customProperties: {
'--color': 'var(--color-blue)'
}
},
{
customProperties: {
'--color-blue': 'blue',
'--color-red': 'red'
}
}
]
},
expect: 'import.expect.css',
result: 'import.result.css'
}
};