mirror of
https://github.com/smogon/sprites.git
synced 2026-04-08 10:16:54 -05:00
12 lines
307 B
TypeScript
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'));
|
|
});
|
|
|