Skip to content

Instantly share code, notes, and snippets.

@phenomnomnominal
Created September 16, 2018 08:45
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/ebf3c44f12a7f8454a625e8e73e8984e to your computer and use it in GitHub Desktop.
Save phenomnomnominal/ebf3c44f12a7f8454a625e8e73e8984e to your computer and use it in GitHub Desktop.
it(`should not create a lint error if the Effect chain doesn't use "catchError()"`, () => {
const sourceFile = tsquery.ast(`
export class MyEffects {
@Effect()
public myEffect = something.observable$.pipe(
switchMap(() => {})
);
};
`);
const errors = Rule.prototype.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