[improvement] rename packages dir to src (#3659)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import Demo from '../demo';
|
||||
import demoTest from '../../../test/demo-test';
|
||||
import { mockGetBoundingClientRect } from '../../../test/utils';
|
||||
|
||||
let restore;
|
||||
|
||||
demoTest(Demo, {
|
||||
hookBeforeTest: () => {
|
||||
restore = mockGetBoundingClientRect({
|
||||
width: 100,
|
||||
height: 100
|
||||
});
|
||||
},
|
||||
hookAfterTest: () => {
|
||||
restore();
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user