Skip to content

Commit

Permalink
Update examples/pages-functions-app/tests/index.test.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Walsh <[email protected]>
  • Loading branch information
GregBrimble and WalshyDev committed Apr 20, 2022
1 parent ebc6699 commit eb12126
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/pages-functions-app/tests/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { spawn, spawnSync } from "child_process";
import { spawn } from "child_process";
import * as path from "path";
import { fetch } from "undici";
import type { ChildProcess } from "child_process";
Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/pages/functions/template-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default function (pluginArgs) {

const result = handlerIterator.next();
// Note we can't use `!result.done` because this doesn't narrow to the correct type
if (result.done == false) {
if (result.done === false) {
const { handler, params, path } = result.value;
const context = {
request,
Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/pages/functions/template-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export default {

const result = handlerIterator.next();
// Note we can't use `!result.done` because this doesn't narrow to the correct type
if (result.done == false) {
if (result.done === false) {
const { handler, params, path } = result.value;
const context = {
request: new Request(request.clone()),
Expand Down

0 comments on commit eb12126

Please sign in to comment.