feat: Implement getFlowDataWithIconUrls method for templates

This commit is contained in:
Faruk AYDIN
2025-03-07 15:55:34 +01:00
parent 4580027e60
commit 842833f3d0
5 changed files with 118 additions and 21 deletions

View File

@@ -1,7 +1,6 @@
import { describe, it, expect, beforeEach } from 'vitest';
import templateSerializer from './template.ee.js';
import { createTemplate } from '../../test/factories/template.js';
describe('templateSerializer', () => {
let template;
@@ -13,7 +12,7 @@ describe('templateSerializer', () => {
const expectedPayload = {
id: template.id,
name: template.name,
flowData: template.flowData,
flowData: template.getFlowDataWithIconUrls(),
createdAt: template.createdAt.getTime(),
updatedAt: template.updatedAt.getTime(),
};