sprites/tools/deploy/script.test.ts
2020-08-08 04:41:13 -04:00

12 lines
307 B
TypeScript

import * as pathlib from './path.js';
import * as script from './script.js';
test('correct output', () => {
const scr = new script.Script('({name: "25"})');
const src = pathlib.path('/foo/bar/pikachu.png');
const dst = scr.runOnFile(src);
expect(dst).toEqual(pathlib.path('25.png'));
});