eslint-plugin-chai-friendly icon indicating copy to clipboard operation
eslint-plugin-chai-friendly copied to clipboard

Enums and chai-friendly

Open 403-html opened this issue 2 years ago • 0 comments

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

403-html avatar Feb 28 '22 09:02 403-html