Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Run $ expresso
- /**
- * Module dependencies.
- */
- var assert = require('assert');
- var app = require('app');
- module.exports = {
- 'GET /': function(){
- assert.response(app,
- { url: '/' },
- { status: 200, headers: { 'Content-Type': 'text/html; charset=utf-8' }},
- function(res){
- assert.includes(res.body, '<title>Express</title>');
- });
- }
- };
Add Comment
Please, Sign In to add comment