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

Enums and chai-friendly #25

Open
403-html opened this issue Feb 28, 2022 · 0 comments
Open

Enums and chai-friendly #25

403-html opened this issue Feb 28, 2022 · 0 comments

Comments

@403-html
Copy link

Hello, I'm using chai-friendly and enums and I get errors about Expected an assignment or function call and instead saw an expression.. How to move on without this error but without disabling chai-friendly?

I have for example what's below and I get an issue.

enums.ts

export enum Something {
   isWrong = "this is wrong"
}

test.spec.js

import { Something } from "enums.ts";

it("test", ()=> {
  selectSomething().should("eq", Something.isWrong)
})
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