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

test: fix sitefile icon test #2940

Merged
merged 1 commit into from
Aug 29, 2018
Merged

test: fix sitefile icon test #2940

merged 1 commit into from
Aug 29, 2018

Conversation

dead-horse
Copy link
Member

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)
Description of change

jshttp/mime-db@0dc5b63#r30314927

这里带来的 breaking change,测试先修一下

@@ -14,16 +14,14 @@ describe('test/app/middleware/site_file.test.js', () => {
it('should GET /favicon.ico 200', () => {
return app.httpRequest()
.get('/favicon.ico')
.expect('Content-Type', 'image/x-icon')
// .expect(res => console.log(res.headers))
.expect(res => assert(res.headers['content-type'].includes('icon')))
Copy link
Member

Choose a reason for hiding this comment

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

啊,原来还支持 fn

@codecov
Copy link

codecov bot commented Aug 29, 2018

Codecov Report

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

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2940   +/-   ##
=======================================
  Coverage   99.75%   99.75%           
=======================================
  Files          29       29           
  Lines         826      826           
=======================================
  Hits          824      824           
  Misses          2        2

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 81826ed...89faa35. Read the comment docs.

@dead-horse dead-horse merged commit b971e66 into master Aug 29, 2018
@dead-horse dead-horse deleted the fix-icon-test branch August 29, 2018 02:50
popomore pushed a commit that referenced this pull request Aug 29, 2018
test: fix sitefile icon test (#2940)
@atian25 atian25 mentioned this pull request Sep 10, 2018
4 tasks
@atian25
Copy link
Member

atian25 commented Sep 10, 2018

jshttp/mime-db#140

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.

2 participants