UNPKG

@jameslnewell/buildkite-pipelines

Version:
24 lines (23 loc) 951 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const _WaitStep = require("./WaitStep"); describe(_WaitStep.WaitStep.name, ()=>{ describe('.wait', ()=>{ const wait = new _WaitStep.WaitStep(); expect(wait.build()).toHaveProperty('wait', null); }); describe('.continue_on_failure', ()=>{ test('defaults to undefined', ()=>{ expect(new _WaitStep.WaitStep().build()).toHaveProperty('continue_on_failure', undefined); }); test('set to true when set on the object', ()=>{ expect(new _WaitStep.WaitStep().setContinueOnFailure(true).build()).toHaveProperty('continue_on_failure', true); }); test('set to false when set on the object', ()=>{ expect(new _WaitStep.WaitStep().setContinueOnFailure(false).build()).toHaveProperty('continue_on_failure', false); }); }); }); //# sourceMappingURL=WaitStep.test.js.map