@@ -16,7 +16,7 @@ var store = new SequelizeStore({
16
16
checkExpirationInterval : 100
17
17
} )
18
18
var sessionId = '1234a'
19
- var sessionData = { foo : 'bar' , ' baz' : '42' }
19
+ var sessionData = { foo : 'bar' , baz : '42' }
20
20
21
21
after ( 'clean up resources, allowing tests to terminate' , function ( ) {
22
22
store . stopExpiringSessions ( )
@@ -191,7 +191,7 @@ describe('#touch()', function () {
191
191
store . touch ( sessionId , sessionData , function ( err ) {
192
192
assert . ok ( ! err , '#touch() got an error' )
193
193
194
- store . sessionModel . findOne ( { where : { ' sid' : sessionId } } ) . then ( function ( session ) {
194
+ store . sessionModel . findOne ( { where : { sid : sessionId } } ) . then ( function ( session ) {
195
195
assert . ok ( session . expires . getTime ( ) !== firstExpires . getTime ( ) , '.expires has not changed' )
196
196
assert . ok ( session . expires > firstExpires , '.expires is not newer' )
197
197
@@ -225,7 +225,7 @@ describe('#disableTouch()', function () {
225
225
store . touch ( sessionId , sessionData , function ( err ) {
226
226
assert . ok ( ! err , '#touch() got an error' )
227
227
228
- store . sessionModel . findOne ( { where : { ' sid' : sessionId } } ) . then ( function ( session ) {
228
+ store . sessionModel . findOne ( { where : { sid : sessionId } } ) . then ( function ( session ) {
229
229
assert . ok ( session . expires . getTime ( ) === firstExpires . getTime ( ) , '.expires was incorrectly changed' )
230
230
231
231
store . destroy ( sessionId , function ( err ) {
0 commit comments