Last active
September 16, 2018 08:17
-
-
Save phenomnomnominal/85b73d248f847ffb50a018da6f8d49b5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it('should create a lint fix if "fdescribe()" is used', () => { | |
const sourceFile = tsquery.ast(` | |
fdescribe(); | |
`); | |
const rule = new Rule({ ruleArguments: [] }); | |
const errors = rule.apply(sourceFile); | |
const [error] = errors; | |
expect(error.hasFix()).to.equal(true); | |
expect((error.getFix() as Replacement).text).to.equal('describe'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment