Skip to content
Myr

Added MemoryStore#length()

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

authored by visionmedia · committed by visionmedia · parent 0587278 · Browse files · 2 files+19 added−0 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+19 added−0 removed

  • tests:+8 added−0 removed
  • other:+11 added−0 removed

2 files+19 added−0 removed

modified:lib/express/plugins/session.js+11 added
modified:spec/spec.plugins.session.js+8 added
63 unmodified lines
64 memory.should.not.have_property '2'65 end66 end67 68 describe '#length()'69 it 'should return the number of session'70 memory.commit({ id: '1' })71 memory.commit({ id: '2' })72 memory.length().should.eql 273 end74 end75 76 describe '#destroy()'77 it 'should destroy a single session'78 memory.commit({ id: '1' })79 memory.commit({ id: '2' })
23 unmodified lines