Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should add a htmlhint rule', () => {
const fakeRule = {
id: 'foo',
description: 'bar',
init() {}
};
htmlhint.addRule(fakeRule);
HTMLHint.rules[fakeRule.id].should.equal(fakeRule);
});
});