stlint-v4fire
Version:
V4Fire Rules for V4Fire
18 lines (13 loc) • 422 B
JavaScript
const { Linter } = require("stlint");
const { expect } = require("chai");
const
wrongContent = '.tab\n\tcolor: #ccc'
describe('Smoke test', () => {
it('Should work', () => {
const linter = new Linter();
linter.lint('./tests/test.styl', wrongContent);
const response = linter.reporter.response;
expect(response.passed).to.be.false;
expect(response.errors && response.errors.length).to.be.equal(3);
});
});