How to use the @staticdeploy/core/lib.Operation.createApp function in @staticdeploy/core

To help you get started, we’ve selected a few @staticdeploy/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github staticdeploy / staticdeploy / storages-test-suite / src / OperationLogsStorage.ts View on Github external
it("case: parameters is a non-empty object", async () => {
                const operationLog = {
                    id: "id",
                    operation: Operation.createApp,
                    parameters: { key: "value" },
                    performedBy: "performedBy",
                    performedAt: new Date()
                };
                await storages.operationLogs.createOne(operationLog);
                const foundOperationLogs = await storages.operationLogs.findMany();
                expect(foundOperationLogs).to.deep.equal([operationLog]);
            });
        });
github staticdeploy / staticdeploy / storages-test-suite / src / OperationLogsStorage.ts View on Github external
it("case: parameters is an empty object", async () => {
                const operationLog = {
                    id: "id",
                    operation: Operation.createApp,
                    parameters: {},
                    performedBy: "performedBy",
                    performedAt: new Date()
                };
                await storages.operationLogs.createOne(operationLog);
                const foundOperationLogs = await storages.operationLogs.findMany();
                expect(foundOperationLogs).to.deep.equal([operationLog]);
            });