Exemplo n.º 1
0
glob.sync('test/_*.scss').forEach(function (file) {
  sassTrue.runSass({ file: file }, describe, it);
});
Exemplo n.º 2
0
///****************************************************************
/// One-Nexus - A toolkit for architecting and constructing 
/// front-end user-interfaces - https://github.com/esr360/One-Nexus
///
/// @author [@esr360](http://twitter.com/esr360)
///****************************************************************

var path = require('path');
var sassTrue = require('sass-true');
var sassFile = path.join(__dirname, 'tests.scss');

sassTrue.runSass({file: sassFile}, describe, it);
Exemplo n.º 3
0
const path = require('path');
const sassTrue = require('sass-true');

// 待测试的文件
const officialDemo = path.join(__dirname, 'official-demo', 'test.scss');

// 运行测试文件
sassTrue.runSass({file: officialDemo}, describe, it);
Exemplo n.º 4
0
var path = require('path');
var sassTrue = require('sass-true');

var sassFile = path.join(__dirname, '_tests.scss');
sassTrue.runSass({file: sassFile, includePaths: ['node_modules/'], precision: 9}, describe, it);
Exemplo n.º 5
0
/* eslint-env mocha */

const path = require('path');
const sassTrue = require('sass-true');

const importer = function(url) {
  if (url[0] === '~') {
    url = path.resolve('node_modules', url.substr(1));
  }

  return { file: url };
};

const sassFile = path.join(__dirname, 'test.scss');
sassTrue.runSass({ importer, file: sassFile }, describe, it);
Exemplo n.º 6
0
/**
 * @file
 * Runs our tests.
 */

'use strict';

var sassTrue = require('sass-true');

let options = {
  file: 'test/sass/ratio-tests.scss',
  includePaths: [
    'stylesheets'
  ]
}
sassTrue.runSass(options, describe, it);

options.file = 'test/sass/rhythm-tests.scss';
sassTrue.runSass(options, describe, it);
Exemplo n.º 7
0
'use strict';

var path = require('path');
var truth = require('sass-true');

var sassFile = path.join(__dirname, 'tests.scss');
truth.runSass({file: sassFile}, describe, it);