Skip to content

Commit

Permalink
aliases endpoint has a permission check in 6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
davisagli committed Feb 6, 2025
1 parent 67df104 commit caaeb22
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/client/src/restapi/aliases/get.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ const cli = ploneClient.initialize({
apiPath: 'http://localhost:55001/plone',
});

const { getAliasesQuery } = cli;
const { login, getAliasesQuery } = cli;
await login({ username: 'admin', password: 'secret' });

describe('[GET] Aliases', () => {
test('Hook - Successful', async () => {
Expand Down
3 changes: 2 additions & 1 deletion packages/client/src/restapi/aliases/get_list.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ const cli = ploneClient.initialize({
apiPath: 'http://localhost:55001/plone',
});

const { getAliasesListQuery } = cli;
const { login, getAliasesListQuery } = cli;
await login({ username: 'admin', password: 'secret' });

describe('[GET] AliasesList', () => {
test('Hook - Successful', async () => {
Expand Down
4 changes: 3 additions & 1 deletion packages/client/src/restapi/history/get.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ describe('[GET] History', () => {

await waitFor(() => expect(result.current.isSuccess).toBe(true));

expect(result.current.data?.[0].action).toBe('Create');
expect(result.current.data?.[result.current.data?.length - 1].action).toBe(
'Create',
);
});

test('Hook - Failure', async () => {
Expand Down

0 comments on commit caaeb22

Please sign in to comment.