Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3178357
D9869.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D9869.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D9869: [Flow202][keyserver][skip-ci] [20/x] Add any-casts for invalid validator tests
Attached
Detach File
Event Timeline
Log In to Comment