Skip to content

Commit

Permalink
Start using scheme for jslib imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
legander committed Aug 5, 2019
1 parent 1ddabdb commit 514f968
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/render/imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function http (spec, lines) {
}

const K6_JS_LIBS = (() => {
const BASE_URL = 'jslib.k6.io'
const BASE_URL = 'https://jslib.k6.io'
return {
jsonpath: `import jsonpath from "${BASE_URL}/jsonpath/1.0.2/index.js"`,
formurlencoded: `import formurlencoded from "${BASE_URL}/form-urlencoded/3.0.0/index.js"`
Expand Down
8 changes: 4 additions & 4 deletions test/unit/render/imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ test('compat', t => {
`import { sleep } from "k6";
import formurlencoded from "jslib.k6.io/form-urlencoded/3.0.0/index.js"
import jsonpath from "jslib.k6.io/jsonpath/1.0.2/index.js"`
import formurlencoded from "https://jslib.k6.io/form-urlencoded/3.0.0/index.js"
import jsonpath from "https://jslib.k6.io/jsonpath/1.0.2/index.js"`
)
})

Expand All @@ -54,6 +54,6 @@ test('combined', t => {
import http from "k6/http";
import formurlencoded from "jslib.k6.io/form-urlencoded/3.0.0/index.js"
import jsonpath from "jslib.k6.io/jsonpath/1.0.2/index.js"`)
import formurlencoded from "https://jslib.k6.io/form-urlencoded/3.0.0/index.js"
import jsonpath from "https://jslib.k6.io/jsonpath/1.0.2/index.js"`)
})

0 comments on commit 514f968

Please sign in to comment.