mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
19 lines
419 B
JavaScript
19 lines
419 B
JavaScript
'use strict';
|
|
|
|
const tryToTape = require('try-to-tape');
|
|
const test = tryToTape(require('tape'));
|
|
|
|
const cloudcmd = require('../..');
|
|
const {request} = require('serve-once')(cloudcmd);
|
|
|
|
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();
|
|
});
|
|
|