Skip to content

Commit

Permalink
Update tests/unit/lib/functions/runtimes/go/index.test.js
Browse files Browse the repository at this point in the history
Co-authored-by: Eduardo Bouças <mail@eduardoboucas.com>
  • Loading branch information
danez and eduardoboucas authored May 20, 2022
1 parent c3d675f commit 19a956d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/lib/functions/runtimes/go/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const { invokeFunction } = rewiremock.proxy(() => require('../../../../../../src

const invokeFunctionMacro = test.macro({
async exec(t, prop, expected) {
runFunctionsProxySpy.returns(Promise.resolve({ stdout: JSON.stringify({ [prop]: expected }) }))
runFunctionsProxySpy.resolves({ stdout: JSON.stringify({ [prop]: expected }) })

const match = await invokeFunction({ func: { mainFile: '', buildData: {} } })
t.deepEqual(match[prop], expected)
Expand Down

0 comments on commit 19a956d

Please sign in to comment.