Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 940654d

Browse files
author
Miroslav Bajtoš
committed
Merge branch 'release/0.1.1' into production
2 parents 73f282a + d450a16 commit 940654d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

lib/helpers.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ var assert = require('assert');
1010
var request = require('supertest');
1111

1212
_beforeEach.withApp = function(app) {
13+
if (app.models.User) {
14+
// Speed up the password hashing algorithm
15+
app.models.User.settings.saltWorkFactor = 4;
16+
}
17+
1318
beforeEach(function() {
1419
this.app = app;
1520
var _request = this.request = request(app);
@@ -58,7 +63,7 @@ _beforeEach.withArgs = function() {
5863
_beforeEach.givenModel = function(modelName, attrs, optionalHandler) {
5964
var modelKey = modelName;
6065

61-
if(typeof attrs === 'funciton') {
66+
if(typeof attrs === 'function') {
6267
optionalHandler = attrs;
6368
attrs = undefined;
6469
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "loopback-testing",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Utilities for testing LoopBack applications",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)