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

Putting any content on the same line as a param test causes the test to crash without explanation #240

Open
srhodes9115 opened this issue Oct 16, 2023 · 0 comments

Comments

@srhodes9115
Copy link

This was my error

src/source/lib/LocalAccessUtil.spec.bs:49:5 - error BSRBS2214: Test group with name userHasLocalAccessPackageForStream, empty.

49 @Describe("userHasLocalAccessPackageForStream")
__ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This was my test:

'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    @describe("userHasLocalAccessPackageForStream")
    '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    @it("returns whether a fan has local access package for stream")
    @params(invalid, false)
    @params(1610612746, true) 'clippers teamId
    @params(1610612763, false) ' memphis teamId
    function _(teamId, expectedResult)
      inMarketTeams = [{ localAccessPackageName: "ClipperVision", teamId: 1610612746 }, { localAccessPackageName: "LakerVision", teamId: 1610612747 }]
      mioc.setInstance("inMarketTeams", inMarketTeams)

      m.assertEqual(m.util.userHasLocalAccessPackageForStream(teamId), expectedResult)
    end function

The issue ended up being that I put 'clippers teamId comment within the params line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant