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:
Daniel Lockyer 2020-08-11 13:45:21 +01:00
parent 14a53f696e
commit ec0ed397d9
3 changed files with 7 additions and 6 deletions

View File

@ -1,5 +1,5 @@
const should = require('should');
const security = require('../../../../core/server/lib/security');
require('./utils');
const security = require('../');
describe('Lib: Security - Password', function () {
it('hash plain password', function () {

View File

@ -1,5 +1,5 @@
const should = require('should');
const security = require('../../../../core/server/lib/security');
require('./utils');
const security = require('../');
describe('Lib: Security - String', function () {
describe('Safe String', function () {

View File

@ -1,6 +1,7 @@
require('./utils');
const should = require('should');
const uuid = require('uuid');
const security = require('../../../../core/server/lib/security');
const security = require('../');
describe('Utils: tokens', function () {
it('generate', function () {
@ -87,7 +88,7 @@ describe('Utils: tokens', function () {
should.not.exist(parts.dbHash);
});
it('extract', function () {
it('extract - hashed password', function () {
const expires = Date.now() + 60 * 1000;
const dbHash = uuid.v4();
let token;