mirror of
https://github.com/immich-app/immich.git
synced 2025-02-03 01:22:44 +01:00
feat (web) - e2e admin command test failures
This commit is contained in:
parent
cd55d50f6e
commit
d5a8cd25d9
1 changed files with 4 additions and 4 deletions
|
@ -7,9 +7,9 @@ describe(`immich-admin`, () => {
|
|||
await utils.adminSetup();
|
||||
});
|
||||
|
||||
describe('remove-admin', () => {
|
||||
it('should remove admin privileges from a user', async () => {
|
||||
const { child, promise } = immichAdmin(['grant-admin']);
|
||||
describe('revoke-admin', () => {
|
||||
it('should revoke admin privileges from a user', async () => {
|
||||
const { child, promise } = immichAdmin(['revoke-admin']);
|
||||
|
||||
let data = '';
|
||||
child.stdout.on('data', (chunk) => {
|
||||
|
@ -22,7 +22,7 @@ describe(`immich-admin`, () => {
|
|||
const { stdout, exitCode } = await promise;
|
||||
expect(exitCode).toBe(0);
|
||||
|
||||
expect(stdout).toContain('Admin access has been removed from');
|
||||
expect(stdout).toContain('Admin access has been revoked from');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue