Skip to content

Commit 3f53818

Browse files
committed
Fix test
1 parent e9375b7 commit 3f53818

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

__tests__/html/sendBoxMiddleware/warnIfInvalid.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
await pageConditions.uiConnected();
1919

2020
// THEN: It should warn about the invalid middleware.
21-
await pageConditions.warnMessageLogged('"sendBoxMiddleware" prop is invalid.');
21+
await pageConditions.warnMessageLogged('must be an array of function');
2222

2323
// THEN: It should render the default send box.
2424
await host.snapshot();

__tests__/html/sendBoxToolbarMiddleware/warnIfInvalid.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
await pageConditions.uiConnected();
1919

2020
// THEN: It should warn about the invalid middleware.
21-
await pageConditions.warnMessageLogged('"sendBoxToolbarMiddleware" prop is invalid.');
21+
await pageConditions.warnMessageLogged('must be an array of function');
2222

2323
// THEN: It should render the default send box.
2424
await host.snapshot();

packages/api/src/middleware/private/templateMiddleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function templateMiddleware<Request = any, Props extends {} = EmptyObject>(name:
2828
return factory;
2929
};
3030

31-
const warnInvalid = warnOnce(`"${name}" middleware prop is must be an array of function`);
31+
const warnInvalid = warnOnce(`"${name}" middleware prop must be an array of function`);
3232

3333
const extractMiddleware = (
3434
middleware: readonly MiddlewareWithInit<ComponentMiddleware<unknown, unknown>, unknown>[] | undefined

0 commit comments

Comments
 (0)