Skip to content

Commit 7cb796f

Browse files
spelling
1 parent 0937ca3 commit 7cb796f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { HttpError } from "./error.ts";
1111
import type { LayoutConfig, Route } from "./types.ts";
1212
import type { RouteComponent } from "./segments.ts";
1313
import {
14-
applyComands,
14+
applyCommands,
1515
type Command,
1616
CommandType,
1717
DEFAULT_NOT_ALLOWED_METHOD,
@@ -356,7 +356,7 @@ export class App<State> {
356356

357357
const router = new UrlPatternRouter<MiddlewareFn<State>>();
358358

359-
const { rootMiddlewares } = applyComands(
359+
const { rootMiddlewares } = applyCommands(
360360
router,
361361
this.#commands,
362362
this.config.basePath,

src/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export type Command<State> =
180180
| HandlerCommand<State>
181181
| FsRouteCommand<State>;
182182

183-
export function applyComands<State>(
183+
export function applyCommands<State>(
184184
router: Router<MiddlewareFn<State>>,
185185
commands: Command<State>[],
186186
basePath: string,

tests/islands_test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { FakeServer } from "../src/test_utils.ts";
2929
import { PARTIAL_SEARCH_PARAM } from "../src/constants.ts";
3030

3131
const allIslandCache = await buildProd({ islandDir: ALL_ISLAND_DIR });
32-
const islandGroupdCache = await buildProd({ root: ISLAND_GROUP_DIR });
32+
const islandGroupCache = await buildProd({ root: ISLAND_GROUP_DIR });
3333

3434
function testApp(config?: FreshConfig): App<unknown> {
3535
const app = new App(config)
@@ -46,7 +46,7 @@ function testGroupApp(config?: FreshConfig): App<unknown> {
4646
.use(staticFiles())
4747
.fsRoutes();
4848

49-
islandGroupdCache(app);
49+
islandGroupCache(app);
5050

5151
return app;
5252
}

0 commit comments

Comments
 (0)