فهرست منبع

[autofix.ci] apply automated fixes

autofix-ci[bot] 1 ماه پیش
والد
کامیت
30c3532e64

+ 2 - 2
packages-private/benchmark/client/__tests__/data.spec.ts

@@ -1,4 +1,4 @@
-import { describe, it, expect, beforeEach } from 'vitest'
+import { beforeEach, describe, expect, it } from 'vitest'
 import { buildData } from '../data'
 import { isRef } from 'vue'
 
@@ -266,4 +266,4 @@ describe('benchmark/data', () => {
       expect(data3[0].id).toBeGreaterThan(data2[data2.length - 1].id)
     })
   })
-})
+})

+ 6 - 7
packages-private/benchmark/client/__tests__/profiling.spec.ts

@@ -1,4 +1,4 @@
-import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'
+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
 import { defer, wrap } from '../profiling'
 import { nextTick } from 'vue'
 
@@ -92,10 +92,7 @@ describe('benchmark/profiling', () => {
     })
 
     it('should use requestIdleCallback', async () => {
-      const requestIdleCallbackSpy = vi.spyOn(
-        globalThis,
-        'requestIdleCallback',
-      )
+      const requestIdleCallbackSpy = vi.spyOn(globalThis, 'requestIdleCallback')
       await defer()
       expect(requestIdleCallbackSpy).toHaveBeenCalled()
     })
@@ -495,7 +492,9 @@ describe('benchmark/profiling', () => {
 
       await wrapped()
 
-      expect(globalThis.times['test-with-dashes_and_underscores.dots']).toBeDefined()
+      expect(
+        globalThis.times['test-with-dashes_and_underscores.dots'],
+      ).toBeDefined()
     })
 
     it('should update DOM correctly with special characters in message', async () => {
@@ -555,4 +554,4 @@ describe('benchmark/profiling', () => {
       expect(performance.clearMeasures).not.toHaveBeenCalled()
     })
   })
-})
+})