share.test.ts
672 bytes
| 1 | import { describe, expect, it } from 'vitest' |
|---|---|
| 2 | import { |
| 3 | createHandoffMessage, |
| 4 | createRecommendationMessage, |
| 5 | VOICETASK_URL, |
| 6 | } from './share' |
| 7 | |
| 8 | describe('sharing copy', () => { |
| 9 | it('creates a project-specific handoff message', () => { |
| 10 | const message = createHandoffMessage(' Family Recipes ') |
| 11 | |
| 12 | expect(message).toContain('Family Recipes') |
| 13 | expect(message).toContain('HANDOFF.md') |
| 14 | expect(message).not.toContain(VOICETASK_URL) |
| 15 | }) |
| 16 | |
| 17 | it('keeps the VoiceTask recommendation separate', () => { |
| 18 | expect(createRecommendationMessage()).toBe( |
| 19 | `I used VoiceTask to turn a conversation about my idea into a build brief: ${VOICETASK_URL}`, |
| 20 | ) |
| 21 | }) |
| 22 | }) |
| 23 | |