Skip to content
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