forked from csstools/postcss-sass
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.tape.js
55 lines (54 loc) · 1.24 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
const processOptions = {
map: {
inline: true,
sourcesContent: true
}
};
module.exports = {
'basic': {
message: 'supports basic usage',
processOptions,
source: 'basic.scss'
},
'basic:sassopts': {
message: 'supports sass options usage',
options: {
indentType: 'tab',
indentWidth: 1,
outputStyle: 'expanded'
},
processOptions,
source: 'basic.scss'
},
'basic:mixed': {
message: 'supports mixed (postcss-unroot, postcss-sass) usage',
plugin: require('postcss')([
// In the previous test, unroot wouldn't do anything.
// I'm pretty sure that is a bug, so I changed the expected css file
require('postcss-unroot'),
require('.')
]),
processOptions,
source: 'basic.scss'
},
'imports': {
message: 'supports imports usage',
plugin: require('postcss')(
require('.')
),
processOptions,
source: 'imports.scss'
},
'postcss-imports': {
message: 'supports imports (postcss-sass, postcss-import) usage',
plugin: require('postcss')(
// Unsure what happened to postcss-import but it no longer imports without .scss at the end
require('.'),
require('postcss-import')
),
processOptions: Object.assign({}, processOptions, {
syntax: require('postcss-scss')
}),
source: 'postcss-imports.scss'
}
};