From a789e52dc57c2c9e61d41729139f27dff0302b02 Mon Sep 17 00:00:00 2001 From: Colin Marshall Date: Sun, 27 Mar 2016 20:36:15 -0600 Subject: [PATCH] Added starter templates for js component unit tests --- test/javascript/components/abide.js | 20 +++++++++++++++++++ test/javascript/components/accordion.js | 20 +++++++++++++++++++ test/javascript/components/accordionMenu.js | 20 +++++++++++++++++++ test/javascript/components/drilldown.js | 20 +++++++++++++++++++ test/javascript/components/dropdown.js | 20 +++++++++++++++++++ test/javascript/components/dropdownMenu.js | 20 +++++++++++++++++++ test/javascript/components/equalizer.js | 20 +++++++++++++++++++ test/javascript/components/interchange.js | 20 +++++++++++++++++++ test/javascript/components/magellan.js | 20 +++++++++++++++++++ test/javascript/components/offcanvas.js | 20 +++++++++++++++++++ test/javascript/components/orbit.js | 20 +++++++++++++++++++ test/javascript/components/responsiveMenu.js | 20 +++++++++++++++++++ .../javascript/components/responsiveToggle.js | 20 +++++++++++++++++++ test/javascript/components/reveal.js | 20 +++++++++++++++++++ test/javascript/components/slider.js | 20 +++++++++++++++++++ test/javascript/components/sticky.js | 20 +++++++++++++++++++ test/javascript/components/tabs.js | 20 +++++++++++++++++++ test/javascript/components/tooltip.js | 20 +++++++++++++++++++ 18 files changed, 360 insertions(+) create mode 100644 test/javascript/components/abide.js create mode 100644 test/javascript/components/accordion.js create mode 100644 test/javascript/components/accordionMenu.js create mode 100644 test/javascript/components/drilldown.js create mode 100644 test/javascript/components/dropdown.js create mode 100644 test/javascript/components/dropdownMenu.js create mode 100644 test/javascript/components/equalizer.js create mode 100644 test/javascript/components/interchange.js create mode 100644 test/javascript/components/magellan.js create mode 100644 test/javascript/components/offcanvas.js create mode 100644 test/javascript/components/orbit.js create mode 100644 test/javascript/components/responsiveMenu.js create mode 100644 test/javascript/components/responsiveToggle.js create mode 100644 test/javascript/components/reveal.js create mode 100644 test/javascript/components/slider.js create mode 100644 test/javascript/components/sticky.js create mode 100644 test/javascript/components/tabs.js create mode 100644 test/javascript/components/tooltip.js diff --git a/test/javascript/components/abide.js b/test/javascript/components/abide.js new file mode 100644 index 000000000..78be9efd8 --- /dev/null +++ b/test/javascript/components/abide.js @@ -0,0 +1,20 @@ +describe('Abide', function() { + var plugin; + var $html; + + // afterEach(function() { + // plugin.destroy(); + // $html.remove(); + // }); + + describe('constructor()', function() { + // it('', function() { + // $html = $('').appendTo('body'); + // plugin = new Foundation.Abide($html, {}); + + // plugin.$element.should.be.an('object'); + // plugin.options.should.be.an('object'); + // }); + }); + +}); \ No newline at end of file diff --git a/test/javascript/components/accordion.js b/test/javascript/components/accordion.js new file mode 100644 index 000000000..302031bfb --- /dev/null +++ b/test/javascript/components/accordion.js @@ -0,0 +1,20 @@ +describe('Accordion', function() { + var plugin; + var $html; + + // afterEach(function() { + // plugin.destroy(); + // $html.remove(); + // }); + + describe('constructor()', function() { + // it('', function() { + // $html = $('').appendTo('body'); + // plugin = new Foundation.Accordion($html, {}); + + // plugin.$element.should.be.an('object'); + // plugin.options.should.be.an('object'); + // }); + }); + +}); \ No newline at end of file diff --git a/test/javascript/components/accordionMenu.js b/test/javascript/components/accordionMenu.js new file mode 100644 index 000000000..7a3c8df3c --- /dev/null +++ b/test/javascript/components/accordionMenu.js @@ -0,0 +1,20 @@ +describe('Accordion Menu', function() { + var plugin; + var $html; + + // afterEach(function() { + // plugin.destroy(); + // $html.remove(); + // }); + + describe('constructor()', function() { + // it('', function() { + // $html = $('').appendTo('body'); + // plugin = new Foundation.AccordionMenu($html, {}); + + // plugin.$element.should.be.an('object'); + // plugin.options.should.be.an('object'); + // }); + }); + +}); \ No newline at end of file diff --git a/test/javascript/components/drilldown.js b/test/javascript/components/drilldown.js new file mode 100644 index 000000000..915dee4be --- /dev/null +++ b/test/javascript/components/drilldown.js @@ -0,0 +1,20 @@ +describe('Drilldown Menu', function() { + var plugin; + var $html; + + // afterEach(function() { + // plugin.destroy(); + // $html.remove(); + // }); + + describe('constructor()', function() { + // it('', function() { + // $html = $('').appendTo('body'); + // plugin = new Foundation.Drilldown($html, {}); + + // plugin.$element.should.be.an('object'); + // plugin.options.should.be.an('object'); + // }); + }); + +}); \ No newline at end of file diff --git a/test/javascript/components/dropdown.js b/test/javascript/components/dropdown.js new file mode 100644 index 000000000..18c62daa5 --- /dev/null +++ b/test/javascript/components/dropdown.js @@ -0,0 +1,20 @@ +describe('Dropdown', function() { + var plugin; + var $html; + + // afterEach(function() { + // plugin.destroy(); + // $html.remove(); + // }); + + describe('constructor()', function() { + // it('', function() { + // $html = $('').appendTo('body'); + // plugin = new Foundation.Dropdown($html, {}); + + // plugin.$element.should.be.an('object'); + // plugin.options.should.be.an('object'); + // }); + }); + +}); \ No newline at end of file diff --git a/test/javascript/components/dropdownMenu.js b/test/javascript/components/dropdownMenu.js new file mode 100644 index 000000000..b8967f38e --- /dev/null +++ b/test/javascript/components/dropdownMenu.js @@ -0,0 +1,20 @@ +describe('Dropdown Menu', function() { + var plugin; + var $html; + + // afterEach(function() { + // plugin.destroy(); + // $html.remove(); + // }); + + describe('constructor()', function() { + // it('', function() { + // $html = $('').appendTo('body'); + // plugin = new Foundation.DropdownMenu($html, {}); + + // plugin.$element.should.be.an('object'); + // plugin.options.should.be.an('object'); + // }); + }); + +}); \ No newline at end of file diff --git a/test/javascript/components/equalizer.js b/test/javascript/components/equalizer.js new file mode 100644 index 000000000..85508a26e --- /dev/null +++ b/test/javascript/components/equalizer.js @@ -0,0 +1,20 @@ +describe('Equalizer', function() { + var plugin; + var $html; + + // afterEach(function() { + // plugin.destroy(); + // $html.remove(); + // }); + + describe('constructor()', function() { + // it('', function() { + // $html = $('').appendTo('body'); + // plugin = new Foundation.Equalizer($html, {}); + + // plugin.$element.should.be.an('object'); + // plugin.options.should.be.an('object'); + // }); + }); + +}); \ No newline at end of file diff --git a/test/javascript/components/interchange.js b/test/javascript/components/interchange.js new file mode 100644 index 000000000..945b7465b --- /dev/null +++ b/test/javascript/components/interchange.js @@ -0,0 +1,20 @@ +describe('Interchange', function() { + var plugin; + var $html; + + // afterEach(function() { + // plugin.destroy(); + // $html.remove(); + // }); + + describe('constructor()', function() { + // it('', function() { + // $html = $('').appendTo('body'); + // plugin = new Foundation.Interchange($html, {}); + + // plugin.$element.should.be.an('object'); + // plugin.options.should.be.an('object'); + // }); + }); + +}); \ No newline at end of file diff --git a/test/javascript/components/magellan.js b/test/javascript/components/magellan.js new file mode 100644 index 000000000..26678f2c5 --- /dev/null +++ b/test/javascript/components/magellan.js @@ -0,0 +1,20 @@ +describe('Magellan', function() { + var plugin; + var $html; + + // afterEach(function() { + // plugin.destroy(); + // $html.remove(); + // }); + + describe('constructor()', function() { + // it('', function() { + // $html = $('').appendTo('body'); + // plugin = new Foundation.Magellan($html, {}); + + // plugin.$element.should.be.an('object'); + // plugin.options.should.be.an('object'); + // }); + }); + +}); \ No newline at end of file diff --git a/test/javascript/components/offcanvas.js b/test/javascript/components/offcanvas.js new file mode 100644 index 000000000..3935a1408 --- /dev/null +++ b/test/javascript/components/offcanvas.js @@ -0,0 +1,20 @@ +describe('Off Canvas', function() { + var plugin; + var $html; + + // afterEach(function() { + // plugin.destroy(); + // $html.remove(); + // }); + + describe('constructor()', function() { + // it('', function() { + // $html = $('').appendTo('body'); + // plugin = new Foundation.OffCanvas($html, {}); + + // plugin.$element.should.be.an('object'); + // plugin.options.should.be.an('object'); + // }); + }); + +}); \ No newline at end of file diff --git a/test/javascript/components/orbit.js b/test/javascript/components/orbit.js new file mode 100644 index 000000000..84d0b403a --- /dev/null +++ b/test/javascript/components/orbit.js @@ -0,0 +1,20 @@ +describe('Orbit', function() { + var plugin; + var $html; + + // afterEach(function() { + // plugin.destroy(); + // $html.remove(); + // }); + + describe('constructor()', function() { + // it('', function() { + // $html = $('').appendTo('body'); + // plugin = new Foundation.Orbit($html, {}); + + // plugin.$element.should.be.an('object'); + // plugin.options.should.be.an('object'); + // }); + }); + +}); \ No newline at end of file diff --git a/test/javascript/components/responsiveMenu.js b/test/javascript/components/responsiveMenu.js new file mode 100644 index 000000000..bdfc48755 --- /dev/null +++ b/test/javascript/components/responsiveMenu.js @@ -0,0 +1,20 @@ +describe('Responsive Menu', function() { + var plugin; + var $html; + + // afterEach(function() { + // plugin.destroy(); + // $html.remove(); + // }); + + describe('constructor()', function() { + // it('', function() { + // $html = $('').appendTo('body'); + // plugin = new Foundation.ResponsiveMenu($html, {}); + + // plugin.$element.should.be.an('object'); + // plugin.options.should.be.an('object'); + // }); + }); + +}); \ No newline at end of file diff --git a/test/javascript/components/responsiveToggle.js b/test/javascript/components/responsiveToggle.js new file mode 100644 index 000000000..0065c29c4 --- /dev/null +++ b/test/javascript/components/responsiveToggle.js @@ -0,0 +1,20 @@ +describe('Responsive Toggle', function() { + var plugin; + var $html; + + // afterEach(function() { + // plugin.destroy(); + // $html.remove(); + // }); + + describe('constructor()', function() { + // it('', function() { + // $html = $('').appendTo('body'); + // plugin = new Foundation.ResponsiveToggle($html, {}); + + // plugin.$element.should.be.an('object'); + // plugin.options.should.be.an('object'); + // }); + }); + +}); \ No newline at end of file diff --git a/test/javascript/components/reveal.js b/test/javascript/components/reveal.js new file mode 100644 index 000000000..01a25ea24 --- /dev/null +++ b/test/javascript/components/reveal.js @@ -0,0 +1,20 @@ +describe('Reveal', function() { + var plugin; + var $html; + + // afterEach(function() { + // plugin.destroy(); + // $html.remove(); + // }); + + describe('constructor()', function() { + // it('', function() { + // $html = $('').appendTo('body'); + // plugin = new Foundation.Reveal($html, {}); + + // plugin.$element.should.be.an('object'); + // plugin.options.should.be.an('object'); + // }); + }); + +}); \ No newline at end of file diff --git a/test/javascript/components/slider.js b/test/javascript/components/slider.js new file mode 100644 index 000000000..419873315 --- /dev/null +++ b/test/javascript/components/slider.js @@ -0,0 +1,20 @@ +describe('Slider', function() { + var plugin; + var $html; + + // afterEach(function() { + // plugin.destroy(); + // $html.remove(); + // }); + + describe('constructor()', function() { + // it('', function() { + // $html = $('').appendTo('body'); + // plugin = new Foundation.Slider($html, {}); + + // plugin.$element.should.be.an('object'); + // plugin.options.should.be.an('object'); + // }); + }); + +}); \ No newline at end of file diff --git a/test/javascript/components/sticky.js b/test/javascript/components/sticky.js new file mode 100644 index 000000000..b332c75ad --- /dev/null +++ b/test/javascript/components/sticky.js @@ -0,0 +1,20 @@ +describe('Sticky', function() { + var plugin; + var $html; + + // afterEach(function() { + // plugin.destroy(); + // $html.remove(); + // }); + + describe('constructor()', function() { + // it('', function() { + // $html = $('').appendTo('body'); + // plugin = new Foundation.Sticky($html, {}); + + // plugin.$element.should.be.an('object'); + // plugin.options.should.be.an('object'); + // }); + }); + +}); \ No newline at end of file diff --git a/test/javascript/components/tabs.js b/test/javascript/components/tabs.js new file mode 100644 index 000000000..0dab0cee1 --- /dev/null +++ b/test/javascript/components/tabs.js @@ -0,0 +1,20 @@ +describe('Tabs', function() { + var plugin; + var $html; + + // afterEach(function() { + // plugin.destroy(); + // $html.remove(); + // }); + + describe('constructor()', function() { + // it('', function() { + // $html = $('').appendTo('body'); + // plugin = new Foundation.Tabs($html, {}); + + // plugin.$element.should.be.an('object'); + // plugin.options.should.be.an('object'); + // }); + }); + +}); \ No newline at end of file diff --git a/test/javascript/components/tooltip.js b/test/javascript/components/tooltip.js new file mode 100644 index 000000000..d680367a8 --- /dev/null +++ b/test/javascript/components/tooltip.js @@ -0,0 +1,20 @@ +describe('Tooltip', function() { + var plugin; + var $html; + + // afterEach(function() { + // plugin.destroy(); + // $html.remove(); + // }); + + describe('constructor()', function() { + // it('', function() { + // $html = $('').appendTo('body'); + // plugin = new Foundation.Tooltip($html, {}); + + // plugin.$element.should.be.an('object'); + // plugin.options.should.be.an('object'); + // }); + }); + +}); \ No newline at end of file -- 2.47.2