mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
Replacing anonymous functions with arrow functions to keep the pattern
This commit is contained in:
parent
9fb666b365
commit
c911ba0f53
@ -18,7 +18,7 @@ describe('Clipboard', () => {
|
|||||||
document.body.innerHTML = '';
|
document.body.innerHTML = '';
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('#resolveOptions', function() {
|
describe('#resolveOptions', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
global.fn = function() {};
|
global.fn = function() {};
|
||||||
});
|
});
|
||||||
@ -48,7 +48,7 @@ describe('Clipboard', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('#delegateClick', function() {
|
describe('#delegateClick', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
global.spy = sinon.spy(Delegate, 'bind');
|
global.spy = sinon.spy(Delegate, 'bind');
|
||||||
});
|
});
|
||||||
@ -69,7 +69,7 @@ describe('Clipboard', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('#undelegateClick', function() {
|
describe('#undelegateClick', () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
global.spy = sinon.spy(Delegate, 'unbind');
|
global.spy = sinon.spy(Delegate, 'unbind');
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user