diff options
author | Wilson Page <wilsonpage@me.com> | 2015-03-17 11:04:46 +0000 |
---|---|---|
committer | Wilson Page <wilsonpage@me.com> | 2015-03-17 11:04:46 +0000 |
commit | 758ac8f6f0d3e87f5b03f0f8d52b29f09852272c (patch) | |
tree | 42cdf13bcca72883d8b9fed462265020c06964c7 /test | |
parent | d0059f17ec9583a1fd0f6a35dc49e723b3f46ebe (diff) | |
download | fastdom-origin/issue54.zip fastdom-origin/issue54.tar.gz fastdom-origin/issue54.tar.bz2 |
Should be allowed to pass and id as a string or a number to .clear()origin/issue54
Diffstat (limited to 'test')
-rw-r--r-- | test/test.clear.js | 14 |
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 |