mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
21 lines
418 B
JavaScript
21 lines
418 B
JavaScript
'use strict';
|
|
|
|
const test = require('supertape');
|
|
|
|
const cloudcmd = require('../..');
|
|
const {request} = require('serve-once')(cloudcmd, {
|
|
config: {
|
|
auth: false,
|
|
},
|
|
});
|
|
|
|
test('cloudcmd: rest: fs: path', async (t) => {
|
|
const {body} = await request.get(`/api/v1/fs`, {
|
|
type: 'json',
|
|
});
|
|
|
|
const {path} = body;
|
|
|
|
t.equal(path, '/', 'should dir path be "/"');
|
|
t.end();
|
|
});
|