1
0
mirror of https://github.com/stolksdorf/homebrewery.git synced 2025-12-20 21:11:29 +00:00

Fixing edge cases in the search tests

This commit is contained in:
Scott Tolksdorf
2017-01-27 19:47:45 -05:00
parent a826aaffd9
commit 26bcb3395a
8 changed files with 80 additions and 43 deletions

View File

@@ -15,6 +15,10 @@ const Chai = require('chai')
const log = require('loglevel');
log.setLevel(config.get('log_level'));
const jwt = require('jwt-simple');
module.exports = {
should: Chai.should()
should: Chai.should(),
getSessionToken : (userInfo) => {
return jwt.encode(userInfo, config.get('jwt_secret'));
}
};