зеркало из https://github.com/mozilla/fxa.git
Merge pull request #16554 from mozilla/fix-gql-test
bug(graphql): Fix mismatch in test state
This commit is contained in:
Коммит
0f1da4adbc
|
@ -182,7 +182,12 @@ describe('#integration - AccountResolver', () => {
|
|||
];
|
||||
const securityEvents = resolver.securityEvents(user!);
|
||||
expect(securityEvents).toStrictEqual([
|
||||
{ name: 'account.created', verified: true, createdAt },
|
||||
{
|
||||
name: 'account.created',
|
||||
verified: true,
|
||||
createdAt,
|
||||
ipAddr: undefined,
|
||||
},
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -5,8 +5,9 @@ CREATE TABLE `securityEvents` (
|
|||
`ipAddrHmac` binary(32) NOT NULL,
|
||||
`createdAt` bigint NOT NULL,
|
||||
`tokenVerificationId` binary(16) DEFAULT NULL,
|
||||
`ipAddr` VARCHAR(39) DEFAULT NULL,
|
||||
KEY `nameId` (`nameId`),
|
||||
KEY `securityEvents_uid_tokenVerificationId` (`uid`,`tokenVerificationId`),
|
||||
KEY `securityEvents_uid_ipAddrHmac_createdAt` (`uid`,`ipAddrHmac`,`createdAt`),
|
||||
CONSTRAINT `securityEvents_ibfk_1` FOREIGN KEY (`nameId`) REFERENCES `securityEventNames` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;
|
||||
|
|
Загрузка…
Ссылка в новой задаче