Skip to content

Commit

Permalink
add monitor dapps
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhson1085 committed Dec 26, 2019
1 parent 76ec15c commit 1da2045
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
8 changes: 7 additions & 1 deletion config/mainnet.json
Expand Up @@ -20,5 +20,11 @@
},
"rpc": {
"uri": "https://rpc.tomochain.com"
}
},
"dapps": [
"https://tomoswap.com",
"https://maxbet.pigfarm.io",
"https://numberhunt.web.app",
"https://staking.tomopool.com"
]
}
24 changes: 24 additions & 0 deletions test/dapp.js
@@ -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()
})
})
})
})
})

0 comments on commit 1da2045

Please sign in to comment.