rooibos-roku 5.1.0 → 5.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1619,7 +1619,7 @@ namespace rooibos
1619
1619
 
1620
1620
  function _expectCalled(target, methodName, rootObject = invalid as dynamic, fullPath = invalid as dynamic, expectedArgs = invalid, returnValue = invalid as dynamic) as object
1621
1621
  try
1622
- if fullPath <> invalid
1622
+ if type(target) <> "roAssociativeArray" and fullPath <> invalid
1623
1623
  target = rooibos.Common.makePathStubbable(rootObject, fullPath)
1624
1624
  end if
1625
1625
  return m.mock(target, methodName, 1, expectedArgs, returnValue, true)
@@ -1637,7 +1637,7 @@ namespace rooibos
1637
1637
 
1638
1638
  function _stubCall(target, methodName, rootObject = invalid as dynamic, fullPath = invalid as dynamic, returnValue = invalid as dynamic) as object
1639
1639
  try
1640
- if fullPath <> invalid
1640
+ if type(target) <> "roAssociativeArray" and fullPath <> invalid
1641
1641
  target = rooibos.Common.makePathStubbable(rootObject, fullPath)
1642
1642
  end if
1643
1643
  return m.stub(target, methodName, returnValue, true)
@@ -1656,7 +1656,7 @@ namespace rooibos
1656
1656
 
1657
1657
  function _expectNotCalled(target, methodName, rootObject = invalid as dynamic, fullPath = invalid as dynamic) as object
1658
1658
  try
1659
- if fullPath <> invalid
1659
+ if type(target) <> "roAssociativeArray" and fullPath <> invalid
1660
1660
  target = rooibos.Common.makePathStubbable(rootObject, fullPath)
1661
1661
  end if
1662
1662
  return m.mock(target, methodName, 0, invalid, invalid, true)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rooibos-roku",
3
- "version": "5.1.0",
3
+ "version": "5.1.1",
4
4
  "description": "simple, flexible, fun brightscript test framework for roku scenegraph apps - roku brighterscript plugin",
5
5
  "repository": {
6
6
  "type": "git",