UNPKG

declapract

Version:

A tool to declaratively define best practices, maintainable evolve them, and scalably enforce them.

19 lines 808 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const validate_1 = require("../../logic/commands/validate"); const validate_2 = __importDefault(require("./validate")); jest.mock('../../logic/commands/validate'); const validateMock = validate_1.validate; describe('generate', () => { it('should call the validate command logic', async () => { await validate_2.default.run(['-c', '/some/path/to/use']); expect(validateMock).toBeCalledTimes(1); expect(validateMock).toHaveBeenCalledWith({ declarePracticesConfigPath: '/some/path/to/use', }); }); }); //# sourceMappingURL=validate.test.js.map