You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
585 B
22 lines
585 B
/*
|
|
* responses-test.js: Tests for HTTP responses.
|
|
*
|
|
* (C) 2011, Charlie Robbins, Paolo Fragomeni, & the Contributors.
|
|
* MIT LICENSE
|
|
*
|
|
*/
|
|
|
|
var assert = require('assert'),
|
|
vows = require('vows'),
|
|
director = require('../../../lib/director');
|
|
|
|
vows.describe('director/http/responses').addBatch({
|
|
"When using director.http": {
|
|
"it should have the relevant responses defined": function () {
|
|
Object.keys(require('../../../lib/director/http/responses')).forEach(function (name) {
|
|
assert.isFunction(director.http[name]);
|
|
});
|
|
}
|
|
}
|
|
}).export(module);
|