Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: replaced sub with function in docs #109

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/api/reference/mocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions docs/api/reference/test-utilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down