var businessman = businessman || {}

describe( 'businessman specs', function () {

    var stores

    it( 'Install Worker', function ( done ) {
        businessman.subscribe( 'create_client_store', ( data ) => {
            stores = data
            expect( data ).to.be.ok()
            done()
        } )
        businessman.install( '/dist/sample-worker.js' )
    } )

    it( 'Store for clients includes dispatch() and subscribe()', function () {
        for ( let store in stores ) {
            expect( stores[ store ] ).to.have.property( 'dispatch' )
            expect( stores[ store ] ).to.have.property( 'subscribe' )
        }
    } )

} )

@@ -618,24 +618,165 @@
 ubscribe' )%0A
+            expect( stores%5B store %5D.dispatch ).to.be.an( 'function' )%0A            expect( stores%5B store %5D.subscribe ).to.be.an( 'function' )%0A
         %7D%0A  

Test that it is a method