Created
September 16, 2018 08:45
-
-
Save phenomnomnominal/6faac9ca3ea5670b8415cf89e82e7ea5 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 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