Source formatting #19

This commit is contained in:
Zeno Rocha 2015-09-29 22:28:15 -07:00
parent 4534fc4ca0
commit aeec3fd520
3 changed files with 7 additions and 8 deletions

View File

@ -10,7 +10,7 @@ module.exports = function(karma) {
'./node_modules/phantomjs-polyfill/bind-polyfill.js'
],
exclude: ['test/node.js'],
exclude: ['test/module-systems.js'],
preprocessors: {
'src/**/*.js' : ['browserify'],

View File

@ -7,12 +7,7 @@
"browser": "src/clipboard.js",
"browserify": {
"transform": [
[
"babelify",
{
"loose": "all"
}
]
["babelify", { "loose": "all" }]
]
},
"license": "MIT",

View File

@ -1,7 +1,7 @@
var assert = require('chai').assert;
var browserify = require('browserify');
describe('Node', function() {
describe('CommonJS', function() {
it('should import the lib in a commonjs env without babel', function(done) {
browserify('./dist/clipboard.js').bundle(function(err) {
assert.equal(err, null);
@ -9,3 +9,7 @@ describe('Node', function() {
});
});
});
describe('AMD', function() {
// TODO: Write test case
});