mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
Source formatting #19
This commit is contained in:
@@ -10,7 +10,7 @@ module.exports = function(karma) {
|
|||||||
'./node_modules/phantomjs-polyfill/bind-polyfill.js'
|
'./node_modules/phantomjs-polyfill/bind-polyfill.js'
|
||||||
],
|
],
|
||||||
|
|
||||||
exclude: ['test/node.js'],
|
exclude: ['test/module-systems.js'],
|
||||||
|
|
||||||
preprocessors: {
|
preprocessors: {
|
||||||
'src/**/*.js' : ['browserify'],
|
'src/**/*.js' : ['browserify'],
|
||||||
|
|||||||
@@ -7,12 +7,7 @@
|
|||||||
"browser": "src/clipboard.js",
|
"browser": "src/clipboard.js",
|
||||||
"browserify": {
|
"browserify": {
|
||||||
"transform": [
|
"transform": [
|
||||||
[
|
["babelify", { "loose": "all" }]
|
||||||
"babelify",
|
|
||||||
{
|
|
||||||
"loose": "all"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
var assert = require('chai').assert;
|
var assert = require('chai').assert;
|
||||||
var browserify = require('browserify');
|
var browserify = require('browserify');
|
||||||
|
|
||||||
describe('Node', function() {
|
describe('CommonJS', function() {
|
||||||
it('should import the lib in a commonjs env without babel', function(done) {
|
it('should import the lib in a commonjs env without babel', function(done) {
|
||||||
browserify('./dist/clipboard.js').bundle(function(err) {
|
browserify('./dist/clipboard.js').bundle(function(err) {
|
||||||
assert.equal(err, null);
|
assert.equal(err, null);
|
||||||
@@ -9,3 +9,7 @@ describe('Node', function() {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('AMD', function() {
|
||||||
|
// TODO: Write test case
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user