File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -592,7 +592,7 @@ test('scoped Store .off()', function (t) {
592
592
} )
593
593
} )
594
594
595
- test ( 'when type change' , function ( t ) {
595
+ test . only ( 'when type change' , function ( t ) {
596
596
t . plan ( 10 )
597
597
598
598
var store = new Store ( 'test-db-type-change' , merge ( { remote : 'test-db-type-change' } , options ) )
@@ -604,7 +604,9 @@ test('when type change', function (t) {
604
604
scopedStoreOldType . on ( 'remove' , function ( object ) {
605
605
scopedStoreOldType
606
606
. find ( object . id )
607
- . catch ( t . throws )
607
+ . catch ( function ( ) {
608
+ t . pass ( 'cannot find object in scopedStoreOldType' )
609
+ } )
608
610
609
611
t . is ( object . type , 'oldtype' , 'in remove event on scopedStoreOldType, type is "oldtype"' )
610
612
t . is ( object . foo , 'bar' , 'in remove event on scopedStoreOldType, foo is "bar"' )
You can’t perform that action at this time.
0 commit comments