mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(cloudcmd) add support of express mounting point (#200)
This commit is contained in:
parent
8a92c97485
commit
51ee3773f7
7 changed files with 15 additions and 47 deletions
|
|
@ -20,7 +20,6 @@ const {connect} = require(beforePath);
|
|||
const {
|
||||
_getPrefix,
|
||||
_auth,
|
||||
_replacePrefix,
|
||||
} = cloudcmd;
|
||||
|
||||
const get = promisify(request);
|
||||
|
|
@ -90,15 +89,6 @@ test('cloudcmd: getPrefix: function: empty', (t) => {
|
|||
t.end();
|
||||
});
|
||||
|
||||
test('cloudcmd: replacePrefix', (t) => {
|
||||
const url = '/hello';
|
||||
const prefix = url;
|
||||
const result = _replacePrefix(url, prefix);
|
||||
|
||||
t.equal(result, '/', 'should equal');
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('cloudcmd: replaceDist', (t) => {
|
||||
const {NODE_ENV} = process.env;
|
||||
process.env.NODE_ENV = 'development';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue