Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
76ec15c
commit 1da2045
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
let chai = require('chai') | ||
let chaiHttp = require('chai-http') | ||
let should = chai.should() | ||
let expect = chai.expect | ||
let config = require('config') | ||
let urljoin = require('url-join') | ||
chai.use(chaiHttp) | ||
describe('DApp', () => { | ||
let dapps = config.dapps | ||
dapps.forEach(dapp => { | ||
describe(`/GET site ${dapp}`, () => { | ||
it('it should GET site', (done) => { | ||
let url = dapp | ||
chai.request(url) | ||
.get('/') | ||
.end((err, res) => { | ||
res.should.have.status(200) | ||
res.should.be.html | ||
done() | ||
}) | ||
}) | ||
}) | ||
}) | ||
}) |