From ba5c48aa864202ae9962a4bb7d5b570efa9caa44 Mon Sep 17 00:00:00 2001 From: TJ Holowaychuk Date: Thu, 27 Jun 2013 08:38:53 -0700 Subject: [PATCH] remove .version export --- lib/express.js | 6 ------ test/exports.js | 12 ++++-------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/lib/express.js b/lib/express.js index f7997c60..c204849e 100644 --- a/lib/express.js +++ b/lib/express.js @@ -16,12 +16,6 @@ var connect = require('connect') exports = module.exports = createApplication; -/** - * Framework version. - */ - -exports.version = '3.2.5'; - /** * Expose mime. */ diff --git a/test/exports.js b/test/exports.js index c5bcc812..d4a4f1d9 100644 --- a/test/exports.js +++ b/test/exports.js @@ -4,10 +4,6 @@ var express = require('../') , assert = require('assert'); describe('exports', function(){ - it('should have .version', function(){ - express.should.have.property('version'); - }) - it('should expose connect middleware', function(){ express.should.have.property('bodyParser'); express.should.have.property('session'); @@ -21,15 +17,15 @@ describe('exports', function(){ it('should expose Router', function(){ express.Router.should.be.a('function'); }) - + it('should expose the application prototype', function(){ express.application.set.should.be.a('function'); }) - + it('should expose the request prototype', function(){ express.request.accepts.should.be.a('function'); }) - + it('should expose the response prototype', function(){ express.response.send.should.be.a('function'); }) @@ -51,7 +47,7 @@ describe('exports', function(){ .get('/') .expect('bar', done); }) - + it('should permit modifying the .response prototype', function(done){ express.response.foo = function(){ this.send('bar'); }; var app = express();