uxp-linter-test-app
Version:
UXP LINTER is useful for linting your code with ESLint rules and guidelines.
18 lines (15 loc) • 611 B
JavaScript
const cssLinter = require('../bin/css-linter-config');
const utils = require('../bin/utils');
jest.mock('../bin/utils');
describe('CSS Linter Test', () => {
test('should install css linter', async () => {
utils.installPackages.mockResolvedValue(true);
let response = await cssLinter.configureCssLinter('init');
expect(response).toBeTruthy();
});
test('should uninstall css linter', async () => {
utils.uninstallPackages.mockResolvedValue(true);
let response = await cssLinter.configureCssLinter('remove');
expect(response).toBeTruthy();
});
});