UNPKG

@jameslnewell/buildkite-pipelines

Version:
26 lines (25 loc) 1.04 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const _ECRPlugin = require("./ECRPlugin"); describe(_ECRPlugin.ECRPlugin.name, ()=>{ test('nested under name/version', async ()=>{ const plugin = new _ECRPlugin.ECRPlugin(); expect(await plugin.build()).toHaveProperty(_ECRPlugin.ECRPlugin.PLUGIN, expect.objectContaining({})); }); describe('.account()', ()=>{ test('is not defined when not specified', async ()=>{ const plugin = new _ECRPlugin.ECRPlugin(); expect((await plugin.build())[_ECRPlugin.ECRPlugin.PLUGIN]).not.toHaveProperty('account-ids'); }); test('is an array when specified', async ()=>{ const account = '12345678'; const plugin = new _ECRPlugin.ECRPlugin().setAccount(account); expect((await plugin.build())[_ECRPlugin.ECRPlugin.PLUGIN]).toHaveProperty('account-ids', [ account ]); }); }); }); //# sourceMappingURL=ECRPlugin.test.js.map