cloudcmd/test/rest/fs.mjs
2024-03-22 23:00:24 +02:00

20 lines
437 B
JavaScript

import serveOnce from 'serve-once';
import test from 'supertape';
import cloudcmd from '../../server/cloudcmd.mjs';
const {request} = serveOnce(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();
});