Skip to content

Commit

Permalink
=BG= add one test that gives **some** coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
bguiz committed Apr 22, 2015
1 parent 7d6fa15 commit a787d45
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@ describe('[index]', function() {
expect(1).toEqual(1);
done();
});
xit('Should require env vars in order to run', function(done) {
var GH_TOKEN = process.env.GH_TOKEN;
process.env.GH_TOKEN = undefined;
it('Should require env vars in order to run', function(done) {
expect(function() {
require('../index');
}).toThrowError( /Environment variable `[^`]+` not set/);
process.env.GH_TOKEN = GH_TOKEN;
require('../autodocs');
}).not.toThrow();
done();
});
});

0 comments on commit a787d45

Please sign in to comment.