Skip to content
Myr

Fixed mime()

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parent 8983f8a · Browse files · 5 files+9 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

5 files+9 added−1 removed

  • tests:+8 added−0 removed
  • other:+1 added−1 removed

5 files+9 added−1 removed

modified:lib/express.mime.js+1 added-1 removed
modified:spec/spec.dom.html+1 added
modified:spec/spec.mime.js+5 added
6 unmodified lines
7 8 it 'should return null when invalid'9 Express.mime('foobar').should.be_null10 end11 12 it 'should parse extension of basename or path passed'13 Express.mime('images/profile.png').should.eql 'image/png'14 Express.mime('foo.bar.something-else.png').should.eql 'image/png'15 end16 end17end
modified:spec/spec.rhino.js+1 added
4 unmodified lines
56JSpec7.exec('spec/spec.core.js')8.exec('spec/spec.routing.js')9.exec('spec/spec.mime.js')10.run({ failuresOnly : true, formatter : JSpec.formatters.Terminal })11.report()
modified:spec/spec.server.html+1 added
6 unmodified lines
7 function runSuites() {8 JSpec9 .exec('spec.core.js')10 .exec('spec.routing.js')11 .exec('spec.mime.js')12 .run()13 .reportToServer()14 }15 </script>
4 unmodified lines