UNPKG

@jameslnewell/buildkite-pipelines

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