1
0
Fork 0
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:
Jason Martin 2025-01-21 12:30:54 -06:00
parent cd55d50f6e
commit d5a8cd25d9

View file

@ -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');
});
});