@orcdkestrator/orcdk-plugin-localstack
Version:
LocalStack lifecycle management plugin for Orcdkestrator
36 lines • 1.19 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const index_1 = require("../index");
describe('LocalStackPlugin', () => {
let plugin;
let mockConfig;
let mockOrcdkConfig;
beforeEach(() => {
mockConfig = {
name: 'localstack',
enabled: true,
config: {}
};
mockOrcdkConfig = {
cdkRoot: 'cdk',
deploymentStrategy: 'auto',
environments: {
local: { displayName: 'Local', isLocal: true }
},
plugins: []
};
plugin = new index_1.LocalStackPlugin();
});
it('should have correct name', () => {
expect(plugin.name).toBe('@orcdkestrator/orcdk-plugin-localstack');
});
it('should be defined', () => {
expect(plugin).toBeDefined();
});
it('should initialize successfully', async () => {
await expect(plugin.initialize(mockConfig, mockOrcdkConfig)).resolves.not.toThrow();
expect(plugin.name).toBe('@orcdkestrator/orcdk-plugin-localstack');
expect(plugin.version).toBeDefined();
});
});
//# sourceMappingURL=LocalStackPlugin.test.js.map