You need to sign in or sign up before continuing.
提交 f9fedb54 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

test: 修复拼写错误

上级 3202838f
...@@ -59,44 +59,44 @@ describe('reactive', () => { ...@@ -59,44 +59,44 @@ describe('reactive', () => {
const updateArr1ReactiveBtn = await page.$('#update-arr1-reactive-btn') const updateArr1ReactiveBtn = await page.$('#update-arr1-reactive-btn')
await updateArr1ReactiveBtn.tap() await updateArr1ReactiveBtn.tap()
await page.waitFor(100) await page.waitFor(100)
expect(await arr1.text()).toBe(JSON.stringify([4, 5, 6])) expect(await arr1.text()).toBe(JSON.stringify([4, 5, 6]))
const arr2 = await page.$('#arr2') const arr2 = await page.$('#arr2')
expect(await arr2.text()).toBe('1') expect(await arr2.text()).toBe('1')
const updateArr2ForEachEffectBtn = await page.$('#update-arr2-forEach-effect-btn') const updateArr2ForEachEffectBtn = await page.$('#update-arr2-forEach-effect-btn')
await updateArr2ForEachEffectBtn.tap() await updateArr2ForEachEffectBtn.tap()
await page.waitFor(100) await page.waitFor(100)
expect(await arr2.text()).toBe('2') expect(await arr2.text()).toBe('2')
const arr3 = await page.$('#arr3') const arr3 = await page.$('#arr3')
expect(await arr2.text()).toBe(JSON.stringify([1, 2, 3, 4, 5].reverse())) expect(await arr3.text()).toBe(JSON.stringify([1, 2, 3, 4, 5].reverse()))
const map2 = await page.$('#map2') const map2 = await page.$('#map2')
expect(await map2.text()).toBe('1') expect(await map2.text()).toBe('1')
const updateMap2ForEachEffectBtn = await page.$('#update-map2-forEach-effect-btn') const updateMap2ForEachEffectBtn = await page.$('#update-map2-forEach-effect-btn')
await updateMap2ForEachEffectBtn.tap() await updateMap2ForEachEffectBtn.tap()
await page.waitFor(100) await page.waitFor(100)
expect(await map2.text()).toBe('2') expect(await map2.text()).toBe('2')
const map3 = await page.$('#map3') const map3 = await page.$('#map3')
expect(await map3.text()).toBe('1') expect(await map3.text()).toBe('1')
const updateMap3ForOfEffectBtn = await page.$('#update-map3-forOf-effect-btn') const updateMap3ForOfEffectBtn = await page.$('#update-map3-forOf-effect-btn')
await updateMap3ForOfEffectBtn.tap() await updateMap3ForOfEffectBtn.tap()
await page.waitFor(100) await page.waitFor(100)
expect(await map3.text()).toBe('2') expect(await map3.text()).toBe('2')
const set2 = await page.$('#set2') const set2 = await page.$('#set2')
expect(await set2.text()).toBe('1') expect(await set2.text()).toBe('1')
const updateSet2ForEachEffectBtn = await page.$('#update-set2-forEach-effect-btn') const updateSet2ForEachEffectBtn = await page.$('#update-set2-forEach-effect-btn')
await updateSet2ForEachEffectBtn.tap() await updateSet2ForEachEffectBtn.tap()
await page.waitFor(100) await page.waitFor(100)
expect(await set2.text()).toBe('2') expect(await set2.text()).toBe('2')
const set3 = await page.$('#set3') const set3 = await page.$('#set3')
expect(await set3.text()).toBe('1') expect(await set3.text()).toBe('1')
const updateSet3ForOfEffectBtn = await page.$('#update-set3-forOf-effect-btn') const updateSet3ForOfEffectBtn = await page.$('#update-set3-forOf-effect-btn')
await updateSet3ForOfEffectBtn.tap() await updateSet3ForOfEffectBtn.tap()
await page.waitFor(100) await page.waitFor(100)
expect(await set3.text()).toBe('2') expect(await set3.text()).toBe('2')
}) })
}) })
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册