mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(cloudcmd) middleware: password: plain -> encrypted (#136)
This commit is contained in:
parent
6255bed777
commit
598817a02e
3 changed files with 34 additions and 13 deletions
|
|
@ -1,6 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
const test = require('tape');
|
||||
|
||||
const DIR = '../../server/';
|
||||
const cloudcmd = require(DIR + 'cloudcmd');
|
||||
const config = require(DIR + 'config');
|
||||
|
|
@ -34,8 +35,7 @@ test('cloudcmd: defaults: config', (t) => {
|
|||
});
|
||||
|
||||
test('cloudcmd: defaults: console', (t) => {
|
||||
const console = config('console');
|
||||
|
||||
const console = config('console');
|
||||
config('console', false);
|
||||
cloudcmd();
|
||||
t.notOk(config('console'), 'should not override config with defaults');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue