Skip to content

Commit

Permalink
Added test for bad module name.
Browse files Browse the repository at this point in the history
  • Loading branch information
wbyoung committed Jun 30, 2014
1 parent a6e7d2d commit b73bb65
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/admit_test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
'use strict';

var sinon = require('sinon');
var expect = require('chai').expect;
var admit = require('..');

describe('admit', function() {
it('fails for unknown modules', function() {
expect(function() { admit('failname'); }).to
.throw(/could not find admit-one adapter failname/i);
});
});

0 comments on commit b73bb65

Please sign in to comment.