1
0
Fork 0
mirror of synced 2024-07-03 13:30:46 +12:00

broken tests: buildCodeForScreens.spec

This commit is contained in:
Michael Shanks 2020-02-25 16:27:52 +00:00
parent 7a21c149ba
commit 754a9bce16

View file

@ -56,4 +56,8 @@ describe("buildCodeForScreen", () => {
})
})
const getFunctions = screen => new Function(buildCodeForScreens([screen]))()
const getFunctions = screen => {
const code = buildCodeForScreens([screen])
const func = new Function(`return ${code}`)()
return func
}