import {console} from "../../../test/console"; import {core} from "../../../test/core"; import {hello} from "../../../test/hello"; import {math} from "../../../test/math"; import {scriptToScriptChunk} from "./scriptToScriptChunk"; describe("scriptToScriptChunk()", () => { it("should convert script to parsed rule chunks", () => { expect(scriptToScriptChunk(console)).toMatchSnapshot(); expect(scriptToScriptChunk(core)).toMatchSnapshot(); expect(scriptToScriptChunk(hello)).toMatchSnapshot(); expect(scriptToScriptChunk(math)).toMatchSnapshot(); }); });