summaryrefslogtreecommitdiffstats
path: root/test/test.clear.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/test.clear.js')
-rw-r--r--test/test.clear.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/test.clear.js b/test/test.clear.js
index f0f60b1..1230b16 100644
--- a/test/test.clear.js
+++ b/test/test.clear.js
@@ -93,4 +93,18 @@ suite('clear', function(){
});
});
});
+
+ test('Should accept String ids', function(done) {
+ var fastdom = new FastDom();
+ var read = sinon.spy();
+
+ var id = fastdom.read(read);
+
+ fastdom.clear(id.toString());
+
+ raf(function() {
+ assert(!read.called);
+ done();
+ });
+ });
}); \ No newline at end of file