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

fix uncalled matchers #3027

Merged
merged 1 commit into from
Apr 2, 2017
Merged

fix uncalled matchers #3027

merged 1 commit into from
Apr 2, 2017

Conversation

danharper
Copy link
Contributor

@danharper danharper commented Mar 31, 2017

Summary

While on something else I noticed some matchers weren't being executed (i.e. just expect(...) with no assertion), I've fixed them.

Test plan

Existing tests pass.

@@ -794,14 +794,14 @@ test.concurrent('install should not continue if integrity check passes', (): Pro
let reinstall = new Install({}, config, reporter, await Lockfile.fromDirectory(config.cwd));
await reinstall.init();

expect(await fs.exists(path.join(config.cwd, 'node_modules', 'yarn.test')));
expect(await fs.exists(path.join(config.cwd, 'node_modules', 'yarn.test'))).toBe(true);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be better to use toBeTruthy().

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 although we use a lot of .toBe(true), we probably should do a one-off search and replace for all places like that

@bestander bestander merged commit 16a8b19 into yarnpkg:master Apr 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants