Skip to content

Commit

Permalink
test(examples): fixed cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mgordel committed Sep 26, 2023
1 parent 718d515 commit 924c314
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h1>WebRequestor - Meme Example</h1>
<h3>Options</h3>
<div class="column">
<div>
<label for="YAGNA_API_BASEPATH">YAGNA_API_BASEURL: </label>
<label for="YAGNA_API_BASEPATH">Yagna Api BaseUrl: </label>
<input id="YAGNA_API_BASEPATH" type="text" value="http://127.0.0.1:7465" />
</div>
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ <h1>JSON upload and download</h1>
<h3>Options</h3>
<div class="column">
<div>
<label for="YAGNA_API_BASEPATH">YAGNA_API_BASEURL: </label>
<label for="YAGNA_API_BASEPATH">Yagna Api BaseUrl: </label>
<input id="YAGNA_API_BASEPATH" type="text" value="http://127.0.0.1:7465" />
</div>
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h1>WebRequestor - QuickStart</h1>
<h3>Options</h3>
<div class="column">
<div>
<label for="YAGNA_API_BASEPATH">YAGNA_API_BASEURL: </label>
<label for="YAGNA_API_BASEPATH">Yagna Api BaseUrl: </label>
<input id="YAGNA_API_BASEPATH" type="text" value="http://127.0.0.1:7465" />
</div>
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h1>WebRequestor - Hello World</h1>
<h3>Options</h3>
<div class="column">
<div>
<label for="YAGNA_API_BASEPATH">YAGNA_API_BASEURL: </label>
<label for="YAGNA_API_BASEPATH">Yagna Api BaseUrl: </label>
<input id="YAGNA_API_BASEPATH" type="text" value="http://127.0.0.1:7465" />
</div>
<div>
Expand Down
3 changes: 3 additions & 0 deletions examples/web/app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ const server = http.createServer((req, res) => {
} else if (req.url === "/docs-quickstart") {
res.writeHead(200, { "content-type": "text/html" });
fs.createReadStream(`${__dirname}/../docs-examples/quickstarts/web-quickstart/index.html`).pipe(res);
} else if (req.url === "/requestor.mjs") {
res.writeHead(200, { "content-type": "text/javascript" });
fs.createReadStream(`${__dirname}/../docs-examples/quickstarts/web-quickstart/requestor.mjs`).pipe(res);
} else if (req.url === "/golem-js.min.js") {
res.writeHead(200, { "content-type": "text/javascript" });
fs.createReadStream(`${__dirname}/../../dist/golem-js.min.js`).pipe(res);
Expand Down

0 comments on commit 924c314

Please sign in to comment.