We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0cbd59 commit 246af02Copy full SHA for 246af02
README.md
@@ -43,9 +43,12 @@ docker run -it --rm webpagetest-api -k YOURAPIKEY test https://docs.webpagetest.
43
44
```javascript
45
const WebPageTest = require("webpagetest");
46
-const wpt = new WebPageTest("www.webpagetest.org");
47
48
-wpt.runTest("https://docs.webpagetest.org/api/integrations/", (err, data) => {
+const wptServer = "www.webpagetest.org";
+const wpt = new WebPageTest(wptServer);
49
+
50
+const siteToTest = "https://docs.webpagetest.org/api/integrations/";
51
+wpt.runTest(siteToTest, (err, data) => {
52
console.log(err || data);
53
});
54
```
0 commit comments