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

refactor: remove duplicate assignment in respond test #1055

Merged
merged 1 commit into from
Sep 11, 2017

Conversation

clarkdo
Copy link
Contributor

@clarkdo clarkdo commented Sep 8, 2017

No description provided.

@codecov
Copy link

codecov bot commented Sep 8, 2017

Codecov Report

Merging #1055 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1055   +/-   ##
=======================================
  Coverage   99.72%   99.72%           
=======================================
  Files           5        5           
  Lines         369      369           
=======================================
  Hits          368      368           
  Misses          1        1

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 392e8aa...3f8b803. Read the comment docs.

@jonathanong jonathanong merged commit c161c0f into koajs:master Sep 11, 2017
@@ -544,7 +544,6 @@ describe('app.respond', () => {
ctx.length = fs.readFileSync('package.json').length;
const stream = fs.createReadStream('package.json');
ctx.body = stream;
ctx.body = stream;
Copy link
Member

Choose a reason for hiding this comment

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

from the description of this test case(should keep content-length if overwritten with the same stream), I think we should not delete this line here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

right, sorry I missed the case description

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.

None yet

3 participants