Skip to content

Commit

Permalink
test: make permission test fully independent (RocketChat#31675)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcosSpessatto authored Feb 7, 2024
1 parent 4ea58de commit 2114557
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/meteor/tests/end-to-end/api/11-permissions.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import { expect } from 'chai';
import { before, describe, it } from 'mocha';
import { before, describe, it, after } from 'mocha';

import { getCredentials, api, request, credentials } from '../../data/api-data.js';
import { updatePermission } from '../../data/permissions.helper';

describe('[Permissions]', function () {
this.retries(0);

before((done) => getCredentials(done));

after(() => updatePermission('add-oauth-service', ['admin']));

describe('[/permissions.listAll]', () => {
it('should return an array with update and remove properties', (done) => {
request
Expand Down

0 comments on commit 2114557

Please sign in to comment.