broken tests: buildCodeForScreens.spec

This commit is contained in:
Michael Shanks 2020-02-25 16:27:52 +00:00
parent 7a21c149ba
commit 754a9bce16
1 changed files with 5 additions and 1 deletions

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
}