test: Implement tests for create template API endpoint

This commit is contained in:
Faruk AYDIN
2025-02-26 16:55:29 +01:00
parent 72436f7d3b
commit 3cfa174628
5 changed files with 175 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ class Template extends Base {
},
};
static async create(name, flowId) {
static async create({ name, flowId }) {
const flow = await Flow.query().findById(flowId).throwIfNotFound();
const flowData = await flow.export();