Skip to content

Commit

Permalink
test: change test to expect trailing slash
Browse files Browse the repository at this point in the history
  • Loading branch information
dsanders11 committed Jun 29, 2022
1 parent f18333f commit caef034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin/webpack/test/AssetRelocatorPatch_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function createSimpleDevServer(rendererOut: string): http.Server {
return http
.createServer(async (req, res) => {
const url = req.url || '';
const file = url.endsWith('main_window') ? path.join(url, '/index.html') : url;
const file = url.endsWith('main_window/') ? path.join(url, 'index.html') : url;
const fullPath = path.join(rendererOut, file);
try {
const data = await readFile(fullPath);
Expand Down

0 comments on commit caef034

Please sign in to comment.