UNPKG

declapract

Version:

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

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