/**
 * Copyright (c) 2017, Daniel Imms (MIT License).
 * Copyright (c) 2018, Microsoft Corporation (MIT License).
 */ import * as assert from 'assert' ; import { WindowsTerminal } from './windowsTerminal' ; import { UnixTerminal } from './unixTerminal' ; let terminalCtor ; if ( process . platform === 'win32' ) { terminalCtor = require ( './windowsTerminal' ) ; } else { terminalCtor = require ( './unixTerminal' ) ; } describe ( 'Terminal' , ( ) => { describe ( 'constructor' , ( ) => { it ( 'should do basic type checks' , ( ) => { assert . throws ( ( ) => new ( < any > terminalCtor ) ( 'a' , 'b' , { 'name' : { } } ) , 'name must be a string (not a object)' ) ; } ) ; } ) ; } ) ;