cloudcmd/client/modules/user-menu/run.spec.js
2026-02-03 15:03:49 +02:00

17 lines
388 B
JavaScript

import {test, stub} from 'supertape';
import {runSelected} from './run.js';
test('cloudcmd: client: user menu: run', async (t) => {
const runUserMenu = stub();
const fn = stub();
const selected = ['hello'];
const items = {
hello: fn,
};
await runSelected(selected, items, runUserMenu);
t.calledWith(runUserMenu, [fn]);
t.end();
});