import * as tape from 'tape' ; import isNonEmptyString from '../../src/utils/IsNonEmptyString' ; tape . test ( 'isPlainObject' , t => { t . equal ( isNonEmptyString ( { } ) , false , 'it should not accept object' ) ; t . equal ( isNonEmptyString ( true ) , false , 'it should not accept booolean' ) ; t . equal ( isNonEmptyString ( 3 ) , false , 'it should not accept number' ) ; t . equal ( isNonEmptyString ( '' ) , false , 'it should accept plain empty string' ) ; t . equal ( isNonEmptyString ( 'foo' ) , true , 'it should accept non empty string' ) ; t . end ( ) ; } ) ;