Skip to content

Commit 4e1d63a

Browse files
Revert "internal redirect expects result to be undefined"
This reverts commit a6f5ccb.
1 parent a6f5ccb commit 4e1d63a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/tests-unit/tests/core/routing/matcher.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,10 @@ describe("handleRedirects", () => {
281281
},
282282
]);
283283

284-
expect(result).toBeUndefined();
284+
expect(result.statusCode).toEqual(308);
285+
expect(result.headers.Location).toEqual(
286+
"/search?bar=hello+world&baz=new%2C+earth",
287+
);
285288
});
286289
});
287290

0 commit comments

Comments
 (0)