Skip to content

Commit e9c87c8

Browse files
committed
Revert GitHubInfo tests
1 parent ca7e942 commit e9c87c8

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

test/GitHubInfo.spec.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
import { assert } from 'chai';
22
import GitHubInfo from '../lib/src/GitHubInfo';
33

4-
const TOKEN = process.env.GREN_GITHUB_TOKEN;
5-
6-
if (!TOKEN) {
7-
console.log(chalk.blue('Token not present, skipping Gren tests.'));
8-
describe = describe.skip;
9-
}
10-
114
describe('GitHubInfo', () => {
125
let githubInfo;
136

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

30-
if (TOKEN) {
23+
if (process.env.GREN_GITHUB_TOKEN) {
3124
githubInfo.token.then(({ token }) => {
3225
assert.isOk(token);
3326
});
@@ -37,9 +30,10 @@ describe('GitHubInfo', () => {
3730
assert.isOk(options[0].repo);
3831
assert.isOk(options[0].username);
3932

40-
if (TOKEN) {
33+
if (process.env.GREN_GITHUB_TOKEN) {
4134
assert.isOk(options[1].token);
4235
}
4336
});
37+
4438
});
45-
});
39+
})

0 commit comments

Comments
 (0)