mirror of
https://github.com/Shopify/draggable.git
synced 2025-12-08 20:15:56 +00:00
21 lines
388 B
TypeScript
21 lines
388 B
TypeScript
import AbstractPlugin from 'shared/AbstractPlugin';
|
|
|
|
export class TestPlugin extends AbstractPlugin {
|
|
constructor(draggable: any) {
|
|
super(draggable);
|
|
|
|
/* eslint-disable jest/prefer-spy-on */
|
|
this.attach = jest.fn();
|
|
this.detach = jest.fn();
|
|
/* eslint-enable jest/prefer-spy-on */
|
|
}
|
|
|
|
attach() {
|
|
return jest.fn();
|
|
}
|
|
|
|
detach() {
|
|
return jest.fn();
|
|
}
|
|
}
|