mirror of
https://github.com/Shopify/draggable.git
synced 2025-12-08 20:15:56 +00:00
19 lines
322 B
JavaScript
19 lines
322 B
JavaScript
import AbstractPlugin from 'shared/AbstractPlugin';
|
|
|
|
export class TestPlugin extends AbstractPlugin {
|
|
constructor(draggable) {
|
|
super(draggable);
|
|
|
|
this.attachFunction = jest.fn();
|
|
this.detachFunction = jest.fn();
|
|
}
|
|
|
|
attach() {
|
|
this.attachFunction();
|
|
}
|
|
|
|
detach() {
|
|
this.detachFunction();
|
|
}
|
|
}
|