PHP Classes

File: public/js/lib/director/test/server/http/responses-test.js

Recommend this page to a friend!
  Classes of Sergey Beskorovayniy   Silex MVC Blog   public/js/lib/director/test/server/http/responses-test.js   Download  
File: public/js/lib/director/test/server/http/responses-test.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Silex MVC Blog
MVC based blog using on the Silex micro-framework
Author: By
Last change:
Date: 8 years ago
Size: 585 bytes
 

Contents

Class file image Download
/* * 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);