mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-04-24 03:35:59 +08:00
test of rpvhost
This commit is contained in:
@@ -26,6 +26,6 @@ exports.registerHook 'view.pay.display_payment_details',
|
||||
callback exports.t(req) 'view.payment_details',
|
||||
order_id: deposit_log.payload.order_id
|
||||
|
||||
app.get '/', (req, res) ->
|
||||
app.express.get '/', (req, res) ->
|
||||
exports.render 'index', req, {}, (html) ->
|
||||
res.send html
|
||||
|
||||
12
plugin/rpvhost/test/rpvhost.test.coffee
Normal file
12
plugin/rpvhost/test/rpvhost.test.coffee
Normal file
@@ -0,0 +1,12 @@
|
||||
describe 'plugin/rpvhost', ->
|
||||
agent = null
|
||||
|
||||
before ->
|
||||
agent = supertest.agent app.express
|
||||
|
||||
describe 'router', ->
|
||||
it 'GET /', (done) ->
|
||||
agent.get '/'
|
||||
.redirects 0
|
||||
.expect 200
|
||||
.end done
|
||||
Reference in New Issue
Block a user