This commit is contained in:
lalBi94
2023-03-05 13:23:23 +01:00
commit 7bc56c09b5
14034 changed files with 1834369 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
var sass = require('../../..');
module.exports = [
function() {
return sass.NULL;
},
function() {
return {
contents: 'div {color: yellow;}'
};
}
];

View File

@@ -0,0 +1,10 @@
module.exports = {
'foo($a)': function(size) {
size.setUnit('rem');
return size;
},
'bar($a)': function(size) {
size.setValue(size.getValue() * 2);
return size;
}
};

View File

@@ -0,0 +1,8 @@
var sass = require('../../..');
module.exports = {
'foo($a)': function(str) {
str = str.getValue().replace(/['"]/g, '');
return new sass.types.String('"' + str + str + '"');
}
};

View File

@@ -0,0 +1,5 @@
module.exports = function() {
return {
contents: 'div {color: yellow;}'
};
};

View File

@@ -0,0 +1,5 @@
module.exports = function(file, prev, done) {
done({
contents: 'div {color: yellow;}'
});
};

View File

@@ -0,0 +1,3 @@
module.exports = function() {
return new Error('doesn\'t exist!');
};

View File

@@ -0,0 +1,7 @@
var path = require('path');
module.exports = function(file) {
return {
file: path.resolve(path.join(process.cwd(), 'test/fixtures/include-files/', file + (path.extname(file) ? '' : '.scss')))
};
};

View File

@@ -0,0 +1,6 @@
module.exports = function() {
return {
file: '/some/random/path/file.scss',
contents: 'div {color: yellow;}'
};
};

View File

@@ -0,0 +1,6 @@
module.exports = function(file, prev, done) {
done({
file: '/some/random/path/file.scss',
contents: 'div {color: yellow;}'
});
};

View File

@@ -0,0 +1,7 @@
var path = require('path');
module.exports = function(file, /* jshint unused:false */ prev, done) {
done({
file: path.resolve(path.join(process.cwd(), 'test/fixtures/include-files/', file + (path.extname(file) ? '' : '.scss')))
});
};