spec: Suppress isCI test on CI
This commit is contained in:
		
					parent
					
						
							
								a87fe61f3a
							
						
					
				
			
			
				commit
				
					
						e4d30ccfc3
					
				
			
		
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -5,6 +5,8 @@ const path = require('path') | ||||||
| const os = require('os') | const os = require('os') | ||||||
| const {remote} = require('electron') | const {remote} = require('electron') | ||||||
| 
 | 
 | ||||||
|  | const isCI = remote.getGlobal('isCi') | ||||||
|  | 
 | ||||||
| describe('node feature', function () { | describe('node feature', function () { | ||||||
|   var fixtures = path.join(__dirname, 'fixtures') |   var fixtures = path.join(__dirname, 'fixtures') | ||||||
| 
 | 
 | ||||||
|  | @ -226,6 +228,8 @@ describe('node feature', function () { | ||||||
|     }) |     }) | ||||||
| 
 | 
 | ||||||
|     it('should have isTTY defined', function () { |     it('should have isTTY defined', function () { | ||||||
|  |       if (isCI) return | ||||||
|  | 
 | ||||||
|       assert.equal(typeof process.stdout.isTTY, 'boolean') |       assert.equal(typeof process.stdout.isTTY, 'boolean') | ||||||
|     }) |     }) | ||||||
|   }) |   }) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Cheng Zhao
				Cheng Zhao