forked from necolas/normalize.css
-
Notifications
You must be signed in to change notification settings - Fork 249
/
Copy pathtest_normalize.js
44 lines (36 loc) · 1.28 KB
/
test_normalize.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
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import SassyTest from 'sassy-test';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const sassyTest = new SassyTest();
describe('@include normalize()', function() {
before(function(done) {
sassyTest.configurePaths({
fixtures: path.join(__dirname, 'fixtures/normalize'),
loadPaths: [path.join(__dirname, '../sass')]
});
done();
});
describe('$include parameter', function() {
it('should accept a list with multiple values', function() {
return sassyTest.compileFixture('include-multiple');
});
it('should accept a list with a single value', function() {
return sassyTest.compileFixture('include-single');
});
it('should accept a string', function() {
return sassyTest.compileFixture('include-string');
});
});
describe('$exclude parameter', function() {
it('should accept a list with multiple values', function() {
return sassyTest.compileFixture('exclude-multiple');
});
it('should accept a list with a single value', function() {
return sassyTest.compileFixture('exclude-single');
});
it('should accept a string', function() {
return sassyTest.compileFixture('exclude-string');
});
});
});