File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change 11import { assert } from 'chai' ;
22import 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-
114describe ( '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+ } )
You can’t perform that action at this time.
0 commit comments