MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / createTakeout

Function createTakeout

apps/desktop/main/import-source-runtime.test.ts:10–30  ·  view source on GitHub ↗
(zipPath: string)

Source from the content-addressed store, hash-verified

8import { importPreparedChatWithSource } from './import-source-runtime'
9
10function createTakeout(zipPath: string): void {
11 writeZipFixture(zipPath, [
12 {
13 name: 'Takeout/Google Chat/Users/User sample/user_info.json',
14 content: JSON.stringify({ user: { email: 'owner@example.com', name: 'Owner' } }),
15 },
16 {
17 name: 'Takeout/Google Chat/Groups/DM sample/group_info.json',
18 content: JSON.stringify({
19 members: [
20 { email: 'owner@example.com', name: 'Owner' },
21 { email: 'other@example.com', name: 'Other User' },
22 ],
23 }),
24 },
25 {
26 name: 'Takeout/Google Chat/Groups/DM sample/messages.json',
27 content: JSON.stringify({ messages: [] }),
28 },
29 ])
30}
31
32describe('desktop archive import runtime', () => {
33 it('passes an internal manifest to the importer and preserves the local ZIP', async () => {

Callers 1

Calls 1

writeZipFixtureFunction · 0.90

Tested by

no test coverage detected