import { describe, test, expect } from 'vitest'; import { generateSurveyExampleCode } from './survey'; describe('survey', () => { test('example code', () => { expect( generateSurveyExampleCode('https://example.com', { id: '', workspaceId: '', name: 'Test', payload: { items: [ { name: 'textField', label: 'Text', type: 'text', }, ], }, createdAt: '', updatedAt: '', }) ).matchSnapshot(); }); });