Update HIBP test
This commit is contained in:
Родитель
9bb9a8a731
Коммит
5f590b5992
|
@ -55,7 +55,7 @@ test("notify POST with breach, subscriber hash prefix and suffixes should call s
|
|||
await hibp.notify(mockRequest, mockResponse);
|
||||
|
||||
const mockFluentFormatCalls = LocaleUtils.fluentFormat.mock.calls;
|
||||
expect (mockFluentFormatCalls.length).toBe(2);
|
||||
expect (mockFluentFormatCalls.length).toBe(1);
|
||||
const mockFluentFormatCallArgs = mockFluentFormatCalls[0];
|
||||
expect (mockFluentFormatCallArgs[0]).toEqual(["en"]);
|
||||
expect (mockFluentFormatCallArgs[1]).toBe("hibp-notify-email-subject");
|
||||
|
|
Загрузка…
Ссылка в новой задаче