UNPKG

igo

Version:

Igo is a Node.js Web Framework based on Express

21 lines (13 loc) 392 B
require('igo').dev.test(); const assert = require('assert'); const agent = require('igo').dev.agent; describe('controllers/WelcomeController', function() { // describe('/', function() { it('should show welcome page', async () => { const res = await agent.get('/'); assert.strictEqual(res.statusCode, 200); assert(res.body.match(/running/)); }); }); });