Skip to content

Commit 2f5fb31

Browse files
committed
test: fix incorrect usage of t.throws
see tape-testing/tape#267 * * * This commit was sponsored by Neighbourhoodie You can hire Neighbourhoodie for all your Hoodie / CouchDB / Offline First needs http://go.hood.ie/thehoodiefirm
1 parent cbcf93a commit 2f5fb31

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/specs/scoped.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ test('scoped Store .off()', function (t) {
592592
})
593593
})
594594

595-
test('when type change', function (t) {
595+
test.only('when type change', function (t) {
596596
t.plan(10)
597597

598598
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) {
604604
scopedStoreOldType.on('remove', function (object) {
605605
scopedStoreOldType
606606
.find(object.id)
607-
.catch(t.throws)
607+
.catch(function () {
608+
t.pass('cannot find object in scopedStoreOldType')
609+
})
608610

609611
t.is(object.type, 'oldtype', 'in remove event on scopedStoreOldType, type is "oldtype"')
610612
t.is(object.foo, 'bar', 'in remove event on scopedStoreOldType, foo is "bar"')

0 commit comments

Comments
 (0)