From 0ddd00f1959c78ce37c14fef3c83401408fca3bf Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Tue, 25 Feb 2020 15:07:00 -0500 Subject: Issue #439 - Remove tests from toolkit/ --- .../test/interface-tests/count-test.js | 107 --------------------- 1 file changed, 107 deletions(-) delete mode 100644 toolkit/components/microformats/test/interface-tests/count-test.js (limited to 'toolkit/components/microformats/test/interface-tests/count-test.js') diff --git a/toolkit/components/microformats/test/interface-tests/count-test.js b/toolkit/components/microformats/test/interface-tests/count-test.js deleted file mode 100644 index baac56c2b..000000000 --- a/toolkit/components/microformats/test/interface-tests/count-test.js +++ /dev/null @@ -1,107 +0,0 @@ -/* -Unit test for count -*/ - -assert = chai.assert; - - -describe('Microformat.count', function() { - - it('count', function(){ - - var doc, - node, - result; - - var html = 'GlennJaneEvent2015-07-01'; - - - doc = document.implementation.createHTMLDocument('New Document'); - node = document.createElement('div'); - node.innerHTML = html; - doc.body.appendChild(node); - - options ={ - 'node': node, - }; - - result = Microformats.count(options); - assert.deepEqual( result, {'h-event': 1,'h-card': 2} ); - - }); - - - it('count rels', function(){ - - var doc, - node, - result; - - var html = 'GlennJaneEvent2015-07-01'; - - - doc = document.implementation.createHTMLDocument('New Document'); - node = document.createElement('div'); - node.innerHTML = html; - doc.body.appendChild(node); - - options ={ - 'node': node, - }; - - result = Microformats.count(options); - assert.deepEqual( result, {'h-event': 1,'h-card': 2, 'rels': 1} ); - - }); - - - it('count - no results', function(){ - - var doc, - node, - result; - - var html = 'Jane'; - - - doc = document.implementation.createHTMLDocument('New Document'); - node = document.createElement('div'); - node.innerHTML = html; - doc.body.appendChild(node); - - options ={ - 'node': node, - }; - - result = Microformats.count(options); - assert.deepEqual( result, {} ); - - }); - - - - it('count - no options', function(){ - - var result; - - result = Microformats.count({}); - assert.deepEqual( result, {} ); - - }); - - - it('count - options.html', function(){ - - var options = {}, - result; - - options.html = 'GlennJaneEvent2015-07-01'; - - result = Microformats.count(options); - assert.deepEqual( result, {'h-event': 1,'h-card': 2} ); - - }); - - - - }); -- cgit v1.2.3