UNPKG

@cto.ai/ops

Version:

💻 CTO.ai - The CLI built for Teams 🚀

14 lines (13 loc) • 567 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const runUtils = tslib_1.__importStar(require("./runUtils")); const nameOrPath = './src/templates/command/JavaScript'; describe('checkPathOpsYmlExists', () => { test('should return true if path to ops.yml resolves', () => { expect(runUtils.checkPathOpsYmlExists(nameOrPath)).toBeTruthy(); }); test('should return false if path to ops.yml is missing', () => { expect(runUtils.checkPathOpsYmlExists('.')).toBeFalsy(); }); });