Skip to content
Myr

fixed session example/tests due to connect changes

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 27af9b2 · Browse files · 2 files+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−4 removed

  • tests:+2 added−2 removed
  • other:+2 added−2 removed

2 files+4 added−4 removed

modified:examples/session/app.js+2 added-2 removed
modified:test/request.test.js+2 added-2 removed
5 unmodified lines
6var express = require('express')7 , connect = require('connect')8 , assert = require('assert')9 , should = require('should')10 , MemoryStore = require('connect/middleware/session/memory');10 , MemoryStore = express.session.MemoryStore;1112// Prevent reap timer13var memoryStore = new MemoryStore({ reapInterval: -1 });14
111 unmodified lines
126 127 'test #flash()': function(){128 var app = express.createServer(129 connect.cookieDecoder(),130 connect.session({ store: memoryStore })130 connect.session({ secret: 'something', store: memoryStore })131 );132133 app.flashFormatters = {134 u: function(val){
141 unmodified lines