chore: prettier source code

This commit is contained in:
chenjiahan
2020-04-02 15:36:02 +08:00
parent 340c56b3b5
commit 2fb5cca49a
93 changed files with 272 additions and 283 deletions
+4 -4
View File
@@ -103,7 +103,7 @@ test('async close prop', async () => {
expect(wrapper.emitted('close')[0]).toBeTruthy();
});
test('function call', done => {
test('function call', (done) => {
ImagePreview(images);
ImagePreview(images.slice(0, 1));
Vue.nextTick(() => {
@@ -116,7 +116,7 @@ test('function call', done => {
});
});
test('double click', async done => {
test('double click', async (done) => {
const instance = ImagePreview(images);
await later();
@@ -150,7 +150,7 @@ test('onClose option', () => {
});
});
test('onChange option', async done => {
test('onChange option', async (done) => {
const instance = ImagePreview({
images,
startPostion: 0,
@@ -164,7 +164,7 @@ test('onChange option', async done => {
triggerDrag(swipe, 1000, 0);
});
test('onScale option', async done => {
test('onScale option', async (done) => {
const { getBoundingClientRect } = Element.prototype;
Element.prototype.getBoundingClientRect = jest.fn(() => ({ width: 100 }));