Skip to content

Commit

Permalink
Revert GitHubInfo tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcanessa committed Jan 16, 2018
1 parent ca7e942 commit e9c87c8
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions test/GitHubInfo.spec.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
import { assert } from 'chai';
import GitHubInfo from '../lib/src/GitHubInfo';

const TOKEN = process.env.GREN_GITHUB_TOKEN;

if (!TOKEN) {
console.log(chalk.blue('Token not present, skipping Gren tests.'));
describe = describe.skip;
}

describe('GitHubInfo', () => {
let githubInfo;

Expand All @@ -27,7 +20,7 @@ describe('GitHubInfo', () => {
assert.deepEqual(repo, 'github-release-notes', 'Get the repository name from repo\'s folder');
});

if (TOKEN) {
if (process.env.GREN_GITHUB_TOKEN) {
githubInfo.token.then(({ token }) => {
assert.isOk(token);
});
Expand All @@ -37,9 +30,10 @@ describe('GitHubInfo', () => {
assert.isOk(options[0].repo);
assert.isOk(options[0].username);

if (TOKEN) {
if (process.env.GREN_GITHUB_TOKEN) {
assert.isOk(options[1].token);
}
});

});
});
})

0 comments on commit e9c87c8

Please sign in to comment.