* add policy serialize method * Add policies to collection responses * wip * test: remove .only * refactor: Return policies with team and document requests * store policies on the client * refactor: drive admin UI from policies
14 lines
416 B
JavaScript
14 lines
416 B
JavaScript
/* eslint-disable flowtype/require-valid-file-annotation */
|
|
import { flushdb } from '../test/support';
|
|
import { buildUser } from '../test/factories';
|
|
import { serialize } from './index';
|
|
|
|
beforeEach(flushdb);
|
|
|
|
it('should serialize policy', async () => {
|
|
const user = await buildUser();
|
|
const response = serialize(user, user);
|
|
expect(response.update).toEqual(true);
|
|
expect(response.delete).toEqual(true);
|
|
});
|