Addressed bugs with bcrypt-nodejs and changed crypto.js to password.js
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
// Tests that involve sending password reset emails.
|
||||
|
||||
var request = require('request');
|
||||
var crypto = require('../crypto');
|
||||
var passwordCrypto = require('../password');
|
||||
|
||||
describe('Parse.User testing', () => {
|
||||
it("user sign up class method", (done) => {
|
||||
@@ -1560,7 +1560,7 @@ describe('Parse.User testing', () => {
|
||||
|
||||
it('password format matches hosted parse', (done) => {
|
||||
var hashed = '$2a$10$8/wZJyEuiEaobBBqzTG.jeY.XSFJd0rzaN//ososvEI4yLqI.4aie';
|
||||
crypto.compare('test', hashed)
|
||||
passwordCrypto.compare('test', hashed)
|
||||
.then((pass) => {
|
||||
expect(pass).toBe(true);
|
||||
done();
|
||||
|
||||
Reference in New Issue
Block a user