diff --git a/docs/api/reference/mocks.md b/docs/api/reference/mocks.md index 6b07d25..0f27d57 100644 --- a/docs/api/reference/mocks.md +++ b/docs/api/reference/mocks.md @@ -19,9 +19,9 @@ None. ' Mock a custom component _brs_.mockComponent("ComponentName", { someField: "foobar", - someFunc: sub() + someFunc: function() return 123 - end sub + end function }) ' Mock a built-in component diff --git a/docs/api/reference/test-utilities.md b/docs/api/reference/test-utilities.md index 1490e10..a227839 100644 --- a/docs/api/reference/test-utilities.md +++ b/docs/api/reference/test-utilities.md @@ -64,9 +64,9 @@ A reference to the temporary associative array, so that you can access it from e ### Usage ```brightscript _brs_.testData._isFooAvailable = false -_brs_.mockFunction("isFooAvailable", sub() +_brs_.mockFunction("isFooAvailable", function() return _brs_.testData._isFooAvailable -end sub) +end function) isFooAvailable() ' => false