magicpatch
Version:
Adds IPython / Jupyter magic commands to IJavascript
40 lines (33 loc) • 786 B
JavaScript
const {testMagic} = require("./helpers/magicpatch");
const echoDoc =
`__%echo Documentation:__
Usage: %echo <string><br>
<br>
Write arguments to the standard output.<br>
__File:__ `;
describe("docs", function() {
it("question mark before", async function() {
await testMagic(
// magic command
"?%echo",
// return value
undefined,
// stdout
[echoDoc],
// stderr
[],
);
});
it("question mark after", async function() {
await testMagic(
// magic command
"%echo?",
// return value
undefined,
// stdout
[echoDoc],
// stderr
[],
);
});
});