mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
19 lines
355 B
JavaScript
19 lines
355 B
JavaScript
'use strict';
|
|
|
|
const {test, stub} = require('supertape');
|
|
|
|
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();
|
|
});
|