mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
20 lines
388 B
JavaScript
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();
|
|
});
|