Page MenuHomePhabricator

D9869.diff
No OneTemporary

D9869.diff

diff --git a/keyserver/src/responders/responder-validators.test.js b/keyserver/src/responders/responder-validators.test.js
--- a/keyserver/src/responders/responder-validators.test.js
+++ b/keyserver/src/responders/responder-validators.test.js
@@ -170,7 +170,8 @@
};
expect(registerResponseValidator.is(response)).toBe(true);
- response.cookieChange.userInfos = undefined;
+ const cookieChange: any = response.cookieChange;
+ cookieChange.userInfos = undefined;
expect(registerResponseValidator.is(response)).toBe(false);
});
@@ -367,7 +368,7 @@
describe('search responder', () => {
it('should validate search response', () => {
- const response = {
+ const response: any = {
userInfos: [
{ id: '83817', username: 'temp_user0' },
{ id: '83853', username: 'temp_user1' },
@@ -417,7 +418,7 @@
describe('activity responder', () => {
it('should validate update activity response', () => {
- const response = { unfocusedToUnread: ['93095'] };
+ const response: any = { unfocusedToUnread: ['93095'] };
expect(updateActivityResultValidator.is(response)).toBe(true);
response.unfocusedToUnread.push(123);
expect(updateActivityResultValidator.is(response)).toBe(false);

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 9, 1:37 AM (20 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2447301
Default Alt Text
D9869.diff (1 KB)

Event Timeline