ihordiachenko / eslint-plugin-chai-friendly

Makes eslint friendly towards Chai.js 'expect' and 'should' statements.
MIT License
53 stars 10 forks source link

Enums and chai-friendly #25

Open 403-html opened 2 years ago

403-html commented 2 years ago

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)
})