mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 03:44:29 +03:00
Moved test files to correct name
- `yarn test` will look for files matching `*.test.js`, so this commit fixes the name for the tests
This commit is contained in:
parent
14a53f696e
commit
ec0ed397d9
@ -1,5 +1,5 @@
|
|||||||
const should = require('should');
|
require('./utils');
|
||||||
const security = require('../../../../core/server/lib/security');
|
const security = require('../');
|
||||||
|
|
||||||
describe('Lib: Security - Password', function () {
|
describe('Lib: Security - Password', function () {
|
||||||
it('hash plain password', function () {
|
it('hash plain password', function () {
|
@ -1,5 +1,5 @@
|
|||||||
const should = require('should');
|
require('./utils');
|
||||||
const security = require('../../../../core/server/lib/security');
|
const security = require('../');
|
||||||
|
|
||||||
describe('Lib: Security - String', function () {
|
describe('Lib: Security - String', function () {
|
||||||
describe('Safe String', function () {
|
describe('Safe String', function () {
|
@ -1,6 +1,7 @@
|
|||||||
|
require('./utils');
|
||||||
const should = require('should');
|
const should = require('should');
|
||||||
const uuid = require('uuid');
|
const uuid = require('uuid');
|
||||||
const security = require('../../../../core/server/lib/security');
|
const security = require('../');
|
||||||
|
|
||||||
describe('Utils: tokens', function () {
|
describe('Utils: tokens', function () {
|
||||||
it('generate', function () {
|
it('generate', function () {
|
||||||
@ -87,7 +88,7 @@ describe('Utils: tokens', function () {
|
|||||||
should.not.exist(parts.dbHash);
|
should.not.exist(parts.dbHash);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('extract', function () {
|
it('extract - hashed password', function () {
|
||||||
const expires = Date.now() + 60 * 1000;
|
const expires = Date.now() + 60 * 1000;
|
||||||
const dbHash = uuid.v4();
|
const dbHash = uuid.v4();
|
||||||
let token;
|
let token;
|
Loading…
Reference in New Issue
Block a user