UNPKG

magicpatch

Version:

Adds IPython / Jupyter magic commands to IJavascript

22 lines (20 loc) 492 B
const {testMagic} = require("./helpers/magicpatch"); describe("%cp", function() { it("executes cp", async function() { await testMagic( // magic command "%cp", // return value 0, // stdout [ "MOCKED CP OUTPUT", "[ process 'cp' exited with code 0 ]", ], // stderr [], // print output // true, ); }); });