Skip to content

Instantly share code, notes, and snippets.

@phenomnomnominal
Created September 16, 2018 08:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phenomnomnominal/28fb1f8a54ad14ed784f3bc1c6d768e5 to your computer and use it in GitHub Desktop.
Save phenomnomnominal/28fb1f8a54ad14ed784f3bc1c6d768e5 to your computer and use it in GitHub Desktop.
it('should not create a lint error if "describe()" is used', () => {
const sourceFile = tsquery.ast(`
describe();
`);
const rule = new Rule({ ruleArguments: [] });
const errors = rule.apply(sourceFile);
expect(errors.length).to.equal(0);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment