Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[test] Nuke chai, Added test for private githubs
  • Loading branch information
3rd-Eden committed Nov 11, 2015
1 parent 8f48914 commit 29d896b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -26,8 +26,8 @@
},
"homepage": "https://github.com/3rd-Eden/extract-github",
"devDependencies": {
"mocha": "1.17.x",
"chai": "1.9.x",
"pre-commit": "0.0.x"
"assume": "1.3.x",
"mocha": "2.3.x",
"pre-commit": "1.1.x"
}
}
12 changes: 9 additions & 3 deletions test/extract.test.js
@@ -1,10 +1,9 @@
describe('extract-github', function () {
'use strict';

var extract = require('../')
var expect = require('assume')
, extract = require('../')
, path = require('path')
, chai = require('chai')
, expect = chai.expect
, fs = require('fs');

//
Expand Down Expand Up @@ -94,6 +93,13 @@ describe('extract-github', function () {
expect(github.repo).to.equal('extract-github');
});

it('extracts from a private github enterprise url', function () {
var github = extract({ homepage: 'http://github.example.org/3rd-Eden/extract-github/issues' });

expect(github.user).to.equal('3rd-Eden');
expect(github.repo).to.equal('extract-github');
});

it('extracts the url from the repository', function () {
var github = extract({ repository: { web: 'git://github.com:3rd-Eden/extract-github' }});

Expand Down

0 comments on commit 29d896b

Please sign in to comment.