mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(route) redzip -> win32 (#317)
This commit is contained in:
parent
5edd57a390
commit
ee81cd1533
4 changed files with 7 additions and 5 deletions
|
|
@ -66,7 +66,6 @@ test('cloudcmd: client: view: html', (t) => {
|
|||
|
||||
const {
|
||||
_viewHtml,
|
||||
_createIframe,
|
||||
_Config,
|
||||
} = reRequire('.');
|
||||
|
||||
|
|
@ -76,7 +75,10 @@ test('cloudcmd: client: view: html', (t) => {
|
|||
global.CloudCmd = CloudCmd;
|
||||
global.DOM = DOM;
|
||||
|
||||
t.calledWith(open, [_createIframe(src), _Config]);
|
||||
const [first] = open.args;
|
||||
const [arg] = first;
|
||||
|
||||
t.deepEqual(first, [arg, _Config]);
|
||||
t.end();
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -99,7 +99,6 @@
|
|||
"express": "^4.13.0",
|
||||
"files-io": "^3.0.0",
|
||||
"find-up": "^5.0.0",
|
||||
"flop": "^9.0.0",
|
||||
"for-each-key": "^2.0.0",
|
||||
"format-io": "^2.0.0",
|
||||
"fullstore": "^3.0.0",
|
||||
|
|
@ -135,6 +134,7 @@
|
|||
"try-catch": "^3.0.0",
|
||||
"try-to-catch": "^3.0.0",
|
||||
"tryrequire": "^3.0.0",
|
||||
"win32": "^5.0.1",
|
||||
"wraptile": "^3.0.0",
|
||||
"writejson": "^3.0.0"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ const DIR_COMMON = '../common/';
|
|||
|
||||
const {extname} = require('path');
|
||||
|
||||
const {read} = require('redzip');
|
||||
const {read} = require('win32');
|
||||
const ponse = require('ponse');
|
||||
const rendy = require('rendy');
|
||||
const format = require('format-io');
|
||||
|
|
|
|||
|
|
@ -231,7 +231,7 @@ test('cloudcmd: route: sendIndex: encode', async (t) => {
|
|||
files,
|
||||
});
|
||||
|
||||
mockRequire('redzip', {
|
||||
mockRequire('win32', {
|
||||
read,
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue