1
0
Fork 0

Test to ensure Cascading does not clear self

* test/store/CascadingTest.js: Test that Cascading store does not
  clear itself.
master
Mike Gerwitz 2017-01-04 10:41:23 -05:00
parent 0c18a6321a
commit bb17085448
1 changed files with 14 additions and 0 deletions

View File

@ -82,6 +82,20 @@ describe( 'store.Cascading', () =>
} );
it( 'does not clear self', () =>
{
const sut = Store.use( Sut )();
const substore = Store();
return sut.add( 'foo', substore )
.then( () => sut.clear() )
.then( () => {
return expect( sut.get( 'foo' ) )
.to.eventually.equal( substore )
} );
} );
[
[ [ true, true, true ], true ],
[ [ true, true, false ], false ],