fix(core): Fix issue that GET /workflows/:id does not return tags (#3522)

This commit is contained in:
Ricardo Espinoza
2022-06-18 00:45:18 -04:00
committed by GitHub
parent 1bef4df75f
commit f75f5d711f
2 changed files with 8 additions and 2 deletions

View File

@@ -413,7 +413,7 @@ test('GET /workflows/:id should retrieve workflow', async () => {
expect(response.statusCode).toBe(200);
const { id, connections, active, staticData, nodes, settings, name, createdAt, updatedAt } =
const { id, connections, active, staticData, nodes, settings, name, createdAt, updatedAt, tags } =
response.body;
expect(id).toEqual(workflow.id);
@@ -422,6 +422,7 @@ test('GET /workflows/:id should retrieve workflow', async () => {
expect(active).toBe(false);
expect(staticData).toEqual(workflow.staticData);
expect(nodes).toEqual(workflow.nodes);
expect(tags).toEqual([]);
expect(settings).toEqual(workflow.settings);
expect(createdAt).toEqual(workflow.createdAt.toISOString());
expect(updatedAt).toEqual(workflow.updatedAt.toISOString());