Speed up tests accessing User.password

Decrease User.settings.saltWorkFactor in order to speed up unit-tests.
This commit is contained in:
Miroslav Bajtoš 2014-01-13 20:05:22 +01:00
parent 8040f2dc60
commit 809411c103
1 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,11 @@ app = null;
TaskEmitter = require('strong-task-emitter');
request = require('supertest');
// Speed up the password hashing algorithm
// for tests using the built-in User model
loopback.User.settings.saltWorkFactor = 4;
beforeEach(function () {
app = loopback();