chore: prettier test files

This commit is contained in:
陈嘉涵
2020-01-19 16:16:54 +08:00
parent 82208c42b8
commit 2adcfd8b8b
15 changed files with 65 additions and 32 deletions

View File

@@ -68,7 +68,7 @@ test('touch and scroll to anchor', () => {
const sidebar = wrapper.find('.van-index-bar__sidebar');
const indexes = wrapper.findAll('.van-index-bar__index');
document.elementFromPoint = function (x, y) {
document.elementFromPoint = function(x, y) {
const index = y / 100;
if (index === 1 || index === 2) {
@@ -99,7 +99,7 @@ test('touch and scroll to anchor', () => {
test('scroll and update active anchor', () => {
const nativeRect = Element.prototype.getBoundingClientRect;
Element.prototype.getBoundingClientRect = function () {
Element.prototype.getBoundingClientRect = function() {
const { index } = this.dataset;
return {
top: index ? index * 10 : 0,