mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
23 lines
428 B
JavaScript
23 lines
428 B
JavaScript
'use strict';
|
|
|
|
const {test, stub} = require('supertape');
|
|
const io = require('.');
|
|
|
|
test('client: dom: io', (t) => {
|
|
const sendRequest = stub();
|
|
|
|
io.createDirectory('/hello', {
|
|
sendRequest,
|
|
});
|
|
|
|
const expected = {
|
|
imgPosition: {
|
|
top: true,
|
|
},
|
|
method: 'PUT',
|
|
url: '/fs/hello?dir',
|
|
};
|
|
|
|
t.calledWith(sendRequest, [expected]);
|
|
t.end();
|
|
});
|