cloudcmd/client/dom/io/index.spec.js
2026-01-12 21:40:54 +02:00

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();
});