defined test database
This commit is contained in:
parent
9d1e790a0d
commit
b60ac2105a
2 changed files with 17 additions and 13 deletions
|
@ -56,6 +56,10 @@ class FFTCGDB
|
|||
''', (err) =>
|
||||
logger.error err.message if err
|
||||
|
||||
@db.run '''INSERT INTO users VALUES(1,'jmm','$2b$13$jgDdHHDWqq1RV6PXxf7aOO6AbxqY6tbxIADyIO0FeXt2BlKQCCMzS',NULL);'''
|
||||
@db.run '''INSERT INTO decks VALUES(1,1,'{"name":"frosch"}');'''
|
||||
@db.run '''INSERT INTO decks VALUES(2,1,'{"name":"frosch2"}');'''
|
||||
|
||||
logger.info 'OK clear'
|
||||
|
||||
close: ->
|
||||
|
|
|
@ -56,7 +56,7 @@ class FFTCGSESSION
|
|||
|
||||
else
|
||||
@db.get digest, (err, res) ->
|
||||
logger.info "OK '#{digest}' resumed"
|
||||
logger.debug "OK '#{digest}' resumed"
|
||||
resolve (JSON.parse res)
|
||||
|
||||
module.exports = new FFTCGSESSION
|
||||
|
|
Reference in a new issue