feat: Allow export of collections as sync zip (#1013)
* feat: Allow export of collections as sync zip * test: Add spec
This commit is contained in:
@ -120,6 +120,18 @@ describe('#collections.exportAll', async () => {
|
||||
|
||||
expect(res.status).toEqual(200);
|
||||
});
|
||||
|
||||
it('should allow downloading directly', async () => {
|
||||
const { admin } = await seed();
|
||||
const res = await server.post('/api/collections.exportAll', {
|
||||
body: { token: admin.getJwtToken(), download: true },
|
||||
});
|
||||
|
||||
expect(res.status).toEqual(200);
|
||||
expect(res.headers.get('content-type')).toEqual(
|
||||
'application/force-download'
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe('#collections.add_user', async () => {
|
||||
|
Reference in New Issue
Block a user