This file ( 929B ) exceeds the allowed full mode (48 kb) size.
The editor full hight is disabled, only scrolling is allowed..
If you wish to edit a file, it is recommended to use the scroll mode as some users do not like the full height
mode, although some users like it.
/*
* grunt-express-server
* https://github.com/ericclemmons/grunt-express-server
*
* Copyright (c) 2013 Eric Clemmons
* Licensed under the MIT license.
*/
'use strict';
var get = require('./lib/get');
module.exports.custom_output = {
test_runs_after_listening_output: function(test) {
test.expect(2);
get('http://localhost:3000/hello.txt', function(res, body) {
test.equal(res.statusCode, 200, 'should return 200');
test.equal(body.trim(), 'Howdy!', 'should return static page');
test.done();
}, function(err) {
test.done();
});
},
test_runs_in_development: function(test) {
test.expect(2);
get('http://localhost:3000/env', function(res, body) {
test.equal(res.statusCode, 200, 'should return 200');
test.equal(body, 'Howdy from development!', 'should return dynamic page');
test.done();
}, function(err) {
test.done();
});
}
};