eslint-plugin-chai-friendly
eslint-plugin-chai-friendly copied to clipboard
Enums and chai-friendly
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)
})