Index: test/filterClasses.js |
=================================================================== |
--- a/test/filterClasses.js |
+++ b/test/filterClasses.js |
@@ -157,16 +157,21 @@ |
let filter2 = Filter.fromText("someknownfilter"); |
test.equal(filter2.hitCount, 432, "Known filter returned"); |
filter2.hitCount = 234; |
test.equal(filter1.hitCount, 234, "Changing second wrapper modifies original as well"); |
filter1.delete(); |
+ |
+ test.throws(() => { filter1.delete(); }); |
+ test.throws(() => { filter1.hitCount; }); |
+ test.throws(() => { filter1._pointer; }); |
+ |
filter2.delete(); |
let filter3 = Filter.fromText("someknownfilter"); |
test.equal(filter3.hitCount, 0, "Filter data has been reset once previous instances have been released"); |
filter3.delete(); |
test.done(); |
}; |