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: do not fix format errors with --dry-run #171

Merged
merged 2 commits into from Jun 9, 2018

Conversation

ofrobots
Copy link
Contributor

@ofrobots ofrobots commented Jun 8, 2018

Also added more tests.

@ofrobots ofrobots requested a review from jinwoo June 8, 2018 21:55
@codecov-io
Copy link

codecov-io commented Jun 8, 2018

Codecov Report

Merging #171 into master will increase coverage by 1.89%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #171      +/-   ##
=========================================
+ Coverage   97.21%   99.1%   +1.89%     
=========================================
  Files          10      10              
  Lines         395     449      +54     
  Branches       28      29       +1     
=========================================
+ Hits          384     445      +61     
+ Misses         11       4       -7
Impacted Files Coverage Δ
test/test-format.ts 100% <100%> (ø) ⬆️
src/format.ts 92.1% <100%> (+20.67%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a34ca31...56276ec. Read the comment docs.

},
async () => {
const okay = await format.format(OPTIONS);
t.is(okay, true);
Copy link
Member

Choose a reason for hiding this comment

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

t.true(...)?

},
async () => {
const okay = await format.format(OPTIONS);
t.is(okay, false);
Copy link
Member

Choose a reason for hiding this comment

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

t.false(...)?

fs.readFileSync(path.join(fixturesDir, 'a.ts'), 'utf8');
t.deepEqual(contents, BAD_CODE);
});
});
Copy link
Member

Choose a reason for hiding this comment

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

Nit. New line.

@ofrobots ofrobots merged commit f8a8cb5 into google:master Jun 9, 2018
@ofrobots ofrobots deleted the more-format-tests branch June 9, 2018 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants