cloudcmd/server/root.spec.js
2026-02-03 15:03:49 +02:00

16 lines
332 B
JavaScript

import {test, stub} from 'supertape';
import root from './root.js';
test('cloudcmd: root: mellow', (t) => {
const webToWin = stub();
const dir = 'hello';
const dirRoot = '/';
root(dir, '', {
webToWin,
});
t.calledWith(webToWin, [dir, dirRoot], 'should call mellow');
t.end();
});