UNPKG

singularci

Version:

SingularCI is a DSL transpiler used to generate CI/CD configuration files for existing CI platforms

24 lines 1.07 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const Run_1 = __importDefault(require("../../../src/SemanticModel/Tasks/Run")); const TaskEnum_1 = require("../../../src/SemanticModel/Tasks/TaskEnum"); let runFactory; beforeEach(() => { runFactory = new Run_1.default(); }); test('getCommands should be able to get the commands of a run', () => { const run = runFactory.createRunTask(["run", "node", "file.js"]); expect(run.getCommands()).toEqual(["run", "node", "file.js"]); }); test('getType should be able to get the type on a run command', () => { const run = runFactory.createRunTask(["run"]); expect(!isNaN(run.getType())).toBe(true); }); test('getType should be the type Run for a run command', () => { const run = runFactory.createRunTask(["run"]); expect(run.getType()).toBe(TaskEnum_1.TaskType.Run); }); //# sourceMappingURL=Run.test.js.map