Better typing
This commit is contained in:
parent
e6ae364918
commit
82db76627f
|
@ -27,6 +27,7 @@ describe("jsRunner", () => {
|
|||
const config = new TestConfiguration()
|
||||
|
||||
beforeAll(async () => {
|
||||
// Register js runner
|
||||
init()
|
||||
await config.init()
|
||||
})
|
||||
|
@ -42,5 +43,7 @@ describe("jsRunner", () => {
|
|||
expect(output).toBe(3)
|
||||
})
|
||||
|
||||
runJsHelpersTests((func: any) => config.doInContext(config.getAppId(), func))
|
||||
runJsHelpersTests({
|
||||
funcWrap: (func: any) => config.doInContext(config.getAppId(), func),
|
||||
})
|
||||
})
|
||||
|
|
|
@ -60,7 +60,9 @@ const getParsedManifest = () => {
|
|||
}
|
||||
module.exports.getParsedManifest = getParsedManifest
|
||||
|
||||
module.exports.runJsHelpersTests = (funcWrap = delegate => delegate()) => {
|
||||
module.exports.runJsHelpersTests = (
|
||||
{ funcWrap } = { funcWrap: delegate => delegate() }
|
||||
) => {
|
||||
const manifest = getParsedManifest()
|
||||
|
||||
const processJS = (js, context) => {
|
||||
|
|
Loading…
Reference in New Issue