UNPKG

inklecate

Version:

A tiny wrapper around the desktop executables for ink's command-line Ink language compiler.

24 lines (19 loc) 601 B
const execute = require('../../execute'); const path = require('path'); const output = require('./hello-world.ink.json'); describe('Hello world test.', () => { it('Tests the hello world.', () => { expect.assertions(1); const data = execute({ countAllVisits: true, isCaching: false, inputFilepath: path.join(__dirname, 'hello-world.ink'), outputFilepath: null, verbose: false, DEBUG: false, }); return expect(data.then((inkRet) => { return inkRet.storyContent; })).resolves.toMatchObject(output); }); });