Skip to content

Commit a902e38

Browse files
committed
try to fix that failing test one more time
1 parent c6d2980 commit a902e38

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/api/OfficeAccessCard.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const {
2020
SERVER_ERROR,
2121
FORBIDDEN,
2222
} = require('../../api/util/constants').STATUS_CODES;
23-
const membershipState = require('../../api/util/constants').MEMBERSHIP_STATE;
23+
const { MEMBERSHIP_STATE } = require('../../api/util/constants');
2424
const {
2525
initializeTokenMock,
2626
setTokenStatus,
@@ -264,7 +264,7 @@ describe('OfficeAccessCard', () => {
264264
});
265265

266266
it('Should return 403 when a user with access level below officer tries to edit a card', async () => {
267-
setTokenStatus(true, { _id: id, accessLevel: 'NON_MEMBER' });
267+
setTokenStatus(true, { accessLevel: MEMBERSHIP_STATE.NON_MEMBER });
268268
const result = await test.sendPostRequestWithToken(token,
269269
EDIT_API_PATH, { _id: testCardId, alias: NEW_ALIAS });
270270
expect(result).to.have.status(FORBIDDEN);

0 commit comments

Comments
 (0)