(zipPath: string)
| 8 | import { importPreparedChatWithSource } from './import-source-runtime' |
| 9 | |
| 10 | function 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 | |
| 32 | describe('desktop archive import runtime', () => { |
| 33 | it('passes an internal manifest to the importer and preserves the local ZIP', async () => { |
no test coverage detected