mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
Add a bit more clarity to Invalid Target test
This commit is contained in:
parent
c12c610b22
commit
4b27a72dce
@ -77,7 +77,7 @@ describe('Clipboard', () => {
|
|||||||
assert.instanceOf(clipboard.clipboardAction, ClipboardAction);
|
assert.instanceOf(clipboard.clipboardAction, ClipboardAction);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should throws exception target', done => {
|
it('should throw an exception when target is invalid', done => {
|
||||||
try {
|
try {
|
||||||
var clipboard = new Clipboard('.btn', {
|
var clipboard = new Clipboard('.btn', {
|
||||||
target: function() {
|
target: function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user