mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-17 16:38:18 +00:00
16 lines
332 B
JavaScript
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();
|
|
});
|