Skip to content

Commit

Permalink
boost test coverage to 100%
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Escalante committed May 28, 2014
1 parent 323fdf7 commit 5131b03
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/fixtures/errors/app.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Browserify = require '../../..'

module.exports =
ignores: ["**/_*", "**/.DS_Store"]
extensions: [Browserify(files: "index.js")]
1 change: 1 addition & 0 deletions test/fixtures/errors/doge.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = 'wow'
2 changes: 2 additions & 0 deletions test/fixtures/errors/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
var doge = require('./doge');
console.log(doge);
1 change: 1 addition & 0 deletions test/fixtures/errors/not_browserify.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('im not involved in this browserify business leave me alone')
5 changes: 5 additions & 0 deletions test/test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ after ->

# tests

describe 'errors', ->

it 'should error if not given an out path', ->
(-> new Roots(path.join(_path, 'errors'))).should.throw("you must provide an 'out' path")

describe 'basic', ->

before (done) -> compile_fixture.call(@, 'basic', -> done())
Expand Down

0 comments on commit 5131b03

Please sign in to comment.