MCPcopy
hub / github.com/vuejs/core / assertStats

Function assertStats

packages/vue/__tests__/e2e/svg.spec.ts:62–67  ·  view source on GitHub ↗
(expected: number[])

Source from the content-addressed store, hash-verified

60
61 // assert each value of stats is correct
62 async function assertStats(expected: number[]) {
63 const statsValue = await page().evaluate(() => {
64 return globalStats.map(stat => +stat.value)
65 })
66 expect(statsValue).toEqual(expected)
67 }
68
69 function nthRange(n: number) {
70 return `#demo div:nth-child(${n + 1}) input[type="range"]`

Callers 1

testSvgFunction · 0.85

Calls 2

mapMethod · 0.80
evaluateMethod · 0.65

Tested by

no test coverage detected