Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8472 from colin-marshall/babel-tests
ES6/Babel in JS unit tests
- Loading branch information
Showing
25 changed files
with
405 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,7 @@ test/tmp | |
test/version_tmp | ||
tmp | ||
testing/_build | ||
test/javascript/js-tests.js | ||
|
||
pizza/ | ||
data.json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
var chalk = require('chalk'); | ||
|
||
module.exports = function(err) { | ||
console.log( | ||
chalk.red( | ||
err.fileName + | ||
( | ||
err.loc ? | ||
'(' + err.loc.line + ',' + err.loc.column + '): ' : | ||
': ' | ||
) | ||
) + | ||
'error Babel: ' + err.message + '\n' + | ||
err.codeFrame | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); | ||
// }); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); | ||
// }); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); | ||
// }); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); | ||
// }); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); | ||
// }); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); | ||
// }); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); | ||
// }); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); | ||
// }); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); | ||
// }); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); | ||
// }); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); | ||
// }); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); | ||
// }); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); | ||
// }); | ||
}); | ||
|
||
}); |
Oops, something went wrong.