Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Avatar for KuCalc : devops.
Download
50675 views
1
/*
2
* responses-test.js: Tests for HTTP responses.
3
*
4
* (C) 2011, Nodejitsu Inc.
5
* MIT LICENSE
6
*
7
*/
8
9
var assert = require('assert'),
10
vows = require('vows'),
11
director = require('../../../lib/director');
12
13
vows.describe('director/http/responses').addBatch({
14
"When using director.http": {
15
"it should have the relevant responses defined": function () {
16
Object.keys(require('../../../lib/director/http/responses')).forEach(function (name) {
17
assert.isFunction(director.http[name]);
18
});
19
}
20
}
21
}).export(module);
22