Skip to content

Commit

Permalink
Merge pull request #175 from WebPageTest/jefflembeck-patch-1
Browse files Browse the repository at this point in the history
fix(docs): make example self-explanatory
  • Loading branch information
jefflembeck authored Jul 10, 2023
2 parents e0cbd59 + 246af02 commit 4a50c77
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@ docker run -it --rm webpagetest-api -k YOURAPIKEY test https://docs.webpagetest.

```javascript
const WebPageTest = require("webpagetest");
const wpt = new WebPageTest("www.webpagetest.org");

wpt.runTest("https://docs.webpagetest.org/api/integrations/", (err, data) => {
const wptServer = "www.webpagetest.org";
const wpt = new WebPageTest(wptServer);

const siteToTest = "https://docs.webpagetest.org/api/integrations/";
wpt.runTest(siteToTest, (err, data) => {
console.log(err || data);
});
```
Expand Down

0 comments on commit 4a50c77

Please sign in to comment.