Speed up tests accessing User.password
Decrease User.settings.saltWorkFactor in order to speed up unit-tests.
This commit is contained in:
parent
8040f2dc60
commit
809411c103
|
@ -11,6 +11,11 @@ app = null;
|
||||||
TaskEmitter = require('strong-task-emitter');
|
TaskEmitter = require('strong-task-emitter');
|
||||||
request = require('supertest');
|
request = require('supertest');
|
||||||
|
|
||||||
|
|
||||||
|
// Speed up the password hashing algorithm
|
||||||
|
// for tests using the built-in User model
|
||||||
|
loopback.User.settings.saltWorkFactor = 4;
|
||||||
|
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
app = loopback();
|
app = loopback();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue