Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
test(publish): cover replacing a recorded post with an empty links list
[._.]/ Adam Eivy0ee078475835
diff --git a/server/services/musicVideo/publish/index.test.js b/server/services/musicVideo/publish/index.test.jsindex af07b722f7..dacdf67d48 100644--- a/server/services/musicVideo/publish/index.test.js+++ b/server/services/musicVideo/publish/index.test.js@@ -121,6 +121,15 @@ describe('publish drafts (#9282)', () => {expect(project.publishKit.posts.stackerNews.url).toBe(post.url);});+ it('starts a replaced post over with only the links its replacement carries, and unlinks it from the others', async () => {+ const id = await readyProject();+ await recordPublishPost(id, 'youtube', { url: 'https://youtu.be/old' });+ await recordPublishPost(id, 'x', { url: 'https://x.com/a/status/1', links: ['youtube'] });+ const { post, project } = await recordPublishPost(id, 'youtube', { url: 'https://youtu.be/new', links: [] });+ expect(post.links).toEqual([]);+ expect(project.publishKit.posts.x.links).toEqual([]);+ });+it('records the post the director makes by hand in the filled tab, and nothing else they browse to', async () => {const id = await readyProject();const { connect, pages } = fakeBrowser();