import { Channels } from "./Channels" ; import { assert } from 'chai' ; describe ( 'Channels' , function ( ) { it ( 'should call' , function ( ) { const [ channel , setChannel ] = Channels . create < string > ( ) ; channel ( 'yo' ) ; let message ; assert . equal ( message , undefined ) ; channel ( 'hey' ) ; setChannel ( ( value ) => message = value ) ; channel ( 'sup' ) ; assert . equal ( message , 'sup' ) ; } ) ; } ) ;