Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Commit b561cbb

Browse files
committed
2 parents 372493c + 0a75699 commit b561cbb

3 files changed

Lines changed: 2 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
## Unreleased
88
## Added
99
- [main] Bumped `electron` to v13.6.1 in PR [2318](https://github.com/microsoft/BotFramework-Emulator/pull/2318)
10+
- [main] Fixed early restify route termination in `replyToActivity` handler in PR [2320](https://github.com/microsoft/BotFramework-Emulator/pull/2320)
1011
- [client] Set `contextIsolation` to `false` in Inspector `<webview>` elements in PR [2321](https://github.com/microsoft/BotFramework-Emulator/pull/2321)
11-
12+
1213
## v4.14.0 - 2021 - 7 - 15
1314
## Added
1415
- [client] Bumped `botframework-webchat` to v4.14.0 in PR [2275](https://github.com/microsoft/BotFramework-Emulator/pull/2275)

packages/app/main/src/server/routes/channel/conversations/handlers/replyToActivity.spec.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ describe('replyToActivity route middleware', () => {
105105
});
106106
expect(mockRes.send).toHaveBeenCalledWith(OK, { id: 'someActivityId' });
107107
expect(mockRes.end).toHaveBeenCalled();
108-
expect(mockNext).toHaveBeenCalled();
109108
});
110109

111110
it('should resolve any OAuth cards, post the activity (with a null id) to the user, and send an OK response', async () => {
@@ -123,7 +122,6 @@ describe('replyToActivity route middleware', () => {
123122
});
124123
expect(mockRes.send).toHaveBeenCalledWith(OK, { id: null });
125124
expect(mockRes.end).toHaveBeenCalled();
126-
expect(mockNext).toHaveBeenCalled();
127125

128126
mockReq.body.id = 'someActivityId';
129127
});
@@ -147,6 +145,5 @@ describe('replyToActivity route middleware', () => {
147145
});
148146
expect(mockRes.send).toHaveBeenCalledWith(OK, { id: 'someActivityId' });
149147
expect(mockRes.end).toHaveBeenCalled();
150-
expect(mockNext).toHaveBeenCalled();
151148
});
152149
});

packages/app/main/src/server/routes/channel/conversations/handlers/replyToActivity.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,5 @@ export function createReplyToActivityHandler(emulatorServer: EmulatorRestServer)
8585
} catch (err) {
8686
sendErrorResponse(req, res, next, err);
8787
}
88-
89-
next();
9088
};
9189
}

0 commit comments

Comments
 (0)