Skip to content

Commit 5b9fe88

Browse files
committed
test: correcting test after merging main
1 parent db3130e commit 5b9fe88

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/processors/checkUserPushPermission.test.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ describe('checkUserPushPermission', () => {
1414

1515
beforeEach(() => {
1616
logStub = sinon.stub(console, 'log');
17-
1817
getUsersStub = sinon.stub();
1918
isUserPushAllowedStub = sinon.stub();
2019

@@ -108,10 +107,14 @@ describe('checkUserPushPermission', () => {
108107

109108
it('should return error when no user is set in the action', async () => {
110109
action.user = null;
110+
action.userEmail = null;
111+
getUsersStub.resolves([]);
111112
const result = await exec(req, action);
112113
expect(result.steps).to.have.lengthOf(1);
113114
expect(result.steps[0].error).to.be.true;
114-
expect(result.steps[0].errorMessage).to.include('Push blocked: User not found. Please contact an administrator for support.');
115+
expect(result.steps[0].errorMessage).to.include(
116+
'Push blocked: User not found. Please contact an administrator for support.',
117+
);
115118
});
116119
});
117120
});

0 commit comments

Comments
 (0)