ianalyzer-test-app
Version:
A versatile code analysis tool for JavaScript, HTML, CSS, Angular, React, Vue, and ES6. iAnalyzer ensures code quality through linting, integrates with Sonar for in-depth analysis, performs npm package security checks, assesses performance, and enhances a
19 lines (15 loc) • 639 B
JavaScript
const htmlLinter = require('../bin/html-linter-config');
const utils = require('../bin/utils');
jest.mock('../bin/utils');
describe('HTML Linter Test', () => {
test('should install html linter', async () => {
utils.installPackages.mockResolvedValue(true);
let response = await htmlLinter.configureHtmlLinter('init');
expect(response).toBeTruthy();
});
test('should uninstall html linter', async () => {
utils.uninstallPackages.mockResolvedValue(true);
let response = await htmlLinter.configureHtmlLinter('remove');
expect(response).toBeTruthy();
});
});