rooibos-roku 4.8.0 → 4.8.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.
@@ -1603,6 +1603,15 @@ namespace rooibos
1603
1603
  return fake
1604
1604
  end function
1605
1605
 
1606
+ function expectLastCallToThrowError(error as dynamic)
1607
+ try
1608
+ mock = m.mocks[m.__mockId.toStr()]
1609
+ mock.toThrow(error)
1610
+ catch error
1611
+ m.log.error("could not add throw to last call", error)
1612
+ end try
1613
+ end function
1614
+
1606
1615
  function expectCalled(invocation as dynamic, returnValue = invalid as dynamic, thrownError = invalid as dynamic) as object
1607
1616
  'mock function body - the plugin replaces this
1608
1617
  return invalid
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rooibos-roku",
3
- "version": "4.8.0",
3
+ "version": "4.8.1",
4
4
  "description": "simple, flexible, fun brightscript test framework for roku scenegraph apps - roku brighterscript plugin",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,7 +26,7 @@
26
26
  "@types/node": "^17.0.29",
27
27
  "@typescript-eslint/eslint-plugin": "^4.4.1",
28
28
  "@typescript-eslint/parser": "^4.4.1",
29
- "brighterscript": "0.45.3",
29
+ "brighterscript": "0.49.0",
30
30
  "chai": "^4.2.0",
31
31
  "chai-subset": "^1.6.0",
32
32
  "coveralls": "^3.0.0",