Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
izatop committed May 28, 2021
1 parent a09987c commit 7a74f51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/app/test/src/app/Action/HelloWorldRoute.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Bool, Fields, Int, Text, ToNumber} from "@bunt/input";
import {Bool, Fields, Text, ToNumber} from "@bunt/input";
import {Action} from "@bunt/unit";
import {Resolver, RouteRule} from "../../../../src";
import {route} from "../../route";
Expand All @@ -24,7 +24,7 @@ export default route(
new RouteRule(
"/u/:id",
() => new Fields({
id: new ToNumber(Int),
id: ToNumber,
payload: () => new Fields({name: Text}),
option: Bool,
}),
Expand Down
4 changes: 2 additions & 2 deletions packages/web/test/src/app/Action/HelloWorldRoute.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Resolver, RouteRule} from "@bunt/app";
import {Bool, Fields, Int, Text, ToNumber} from "@bunt/input";
import {Bool, Fields, Text, ToNumber} from "@bunt/input";
import {route} from "../route";
import {HelloWorldAction} from "./HelloWorldAction";

Expand All @@ -8,7 +8,7 @@ export default route(
new RouteRule(
"/u/:id",
() => new Fields({
id: new ToNumber(Int),
id: ToNumber,
payload: () => new Fields({name: Text}),
option: Bool,
}),
Expand Down

0 comments on commit 7a74f51

Please sign in to comment.