Skip to content

Commit

Permalink
fix(vscode): windows compatible new route and middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
alestiago committed Sep 20, 2023
1 parent 31515b4 commit d082972
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion extensions/vscode/src/commands/new-middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function executeDartFrogNewMiddlewareCommand(
dartFrogProjectPath: string
): void {
cp.exec(
`dart_frog new middleware '${routePath}'`,
`dart_frog new middleware "${routePath}"`,
{
cwd: dartFrogProjectPath,
},
Expand Down
2 changes: 1 addition & 1 deletion extensions/vscode/src/commands/new-route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ function executeDartFrogNewRouteCommand(
dartFrogProjectPath: string
): void {
cp.exec(
`dart_frog new route '${routePath}'`,
`dart_frog new route "${routePath}"`,
{
cwd: dartFrogProjectPath,
},
Expand Down
10 changes: 5 additions & 5 deletions extensions/vscode/src/test/suite/commands/new-middleware.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ suite("new-middleware command", () => {

sinon.assert.calledWith(
childProcessStub.exec,
`dart_frog new middleware 'food'`
`dart_frog new middleware "food"`
);
});

Expand All @@ -380,7 +380,7 @@ suite("new-middleware command", () => {

sinon.assert.calledWith(
childProcessStub.exec,
`dart_frog new middleware 'food/pizza'`
`dart_frog new middleware "food/pizza"`
);
});

Expand All @@ -398,7 +398,7 @@ suite("new-middleware command", () => {

sinon.assert.calledWith(
childProcessStub.exec,
`dart_frog new middleware '/'`
`dart_frog new middleware "/"`
);
});

Expand All @@ -416,7 +416,7 @@ suite("new-middleware command", () => {

sinon.assert.calledWith(
childProcessStub.exec,
`dart_frog new middleware 'food/italian'`
`dart_frog new middleware "food/italian"`
);
});

Expand All @@ -437,7 +437,7 @@ suite("new-middleware command", () => {

sinon.assert.calledWith(
childProcessStub.exec,
`dart_frog new middleware 'animals/lion'`
`dart_frog new middleware "animals/lion"`
);
});
});
Expand Down
4 changes: 2 additions & 2 deletions extensions/vscode/src/test/suite/commands/new-route.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ suite("new-route command", () => {

sinon.assert.calledWith(
childProcessStub.exec,
`dart_frog new route '${routePath}'`
`dart_frog new route "${routePath}"`
);
});

Expand All @@ -358,7 +358,7 @@ suite("new-route command", () => {

sinon.assert.calledWith(
childProcessStub.exec,
`dart_frog new route '${routePath}'`,
`dart_frog new route "${routePath}"`,
{
cwd: validUri.fsPath,
}
Expand Down

0 comments on commit d082972

Please sign in to comment.