Skip to content

Commit

Permalink
Merge pull request #32 from alejo90/mjs-import-error
Browse files Browse the repository at this point in the history
change join import to path default import for mjs compatibility
  • Loading branch information
Lakitna authored Oct 17, 2019
2 parents 71c021d + 44ef3f1 commit 1219140
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/request.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { join } from 'path';
import path from 'path';
const _ = Cypress._;

const methods = [
Expand Down Expand Up @@ -83,7 +83,7 @@ function parseUrl(url) {
const protocol = split[0] + '://';
const baseUrl = split[1];

url = protocol + join(baseUrl, url);
url = protocol + path.join(baseUrl, url);
}
}
return url;
Expand Down

0 comments on commit 1219140

Please sign in to comment.