cloudcmd/server/root.spec.js
2024-03-21 08:49:14 +02:00

20 lines
388 B
JavaScript

'use strict';
const {test, stub} = require('supertape');
const mockRequire = require('mock-require');
const root = require('./root');
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();
});