cloudcmd/test/rest/fs.js
2018-11-09 14:53:20 +02:00

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();
});