Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(excludedMutations): Implement new naming of mutators #1855

Merged
merged 11 commits into from
Nov 23, 2019
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ export default function ConditionalExpressionMutatorSpec(name: string, expectMut
expectMutation('a % b');
});

it('should not mutate assignments', () => {
nicojs marked this conversation as resolved.
Show resolved Hide resolved
expectMutation('let displayName; displayName = "Label";');
});

it('should mutate the expression of a do statement', () => {
expectMutation('do { console.log(); } while(a < b);', 'do { console.log(); } while(false);');
});
Expand Down