hulu / roca

A command-line tool for running brightscript tests
Apache License 2.0
25 stars 19 forks source link

CreateObject returns Invalid #128

Open xgouchet opened 2 years ago

xgouchet commented 2 years ago

I'm trying to test a custom component, using the following code:

Running the test always fails with the following output:

      m.assert.isValid: Should be valid
      + expected - actual

      -null
      +non-invalid

      at m.assert.isValid (src/tests/MyComponent.test.brs:5:12)

Whenever I try creating another type of object, for instance CreateObject("roDeviceInfo"), then the test succeeds.