canonical
Version:
Canonical code style linter and formatter for JavaScript, SCSS, CSS and JSON.
36 lines (30 loc) • 786 B
JavaScript
'use strict';
var lint = require('./_lint');
//////////////////////////////
// SCSS syntax tests
//////////////////////////////
describe('nesting depth - scss', function () {
var file = lint.file('nesting-depth.scss');
it('[max-depth: 2]', function (done) {
lint.test(file, {
'nesting-depth': 1
}, function (data) {
lint.assert.equal(2, data.warningCount);
done();
});
});
});
//////////////////////////////
// Sass syntax tests
//////////////////////////////
describe('nesting depth - sass', function () {
var file = lint.file('nesting-depth.sass');
it('[max-depth: 2]', function (done) {
lint.test(file, {
'nesting-depth': 1
}, function (data) {
lint.assert.equal(2, data.warningCount);
done();
});
});
});