提交 a8fc2e2c 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

test: 修复错误变量名

上级 b5880879
......@@ -5,7 +5,7 @@ describe("setCustomNavigationBarColor", () => {
let page;
let originLifeCycleNum;
const isAndroid = process.env.UNI_OS_NAME === "android";
const adbScreenShotArea = {
const screenShotArea = {
x: 342,
y:18,
width: 40,
......@@ -38,7 +38,7 @@ describe("setCustomNavigationBarColor", () => {
if (isAndroid) {
const image = await program.screenshot({
deviceShot: true,
area: adbScreenShotArea,
area: screenShotArea,
});
expect(image).toSaveImageSnapshot();
}
......@@ -52,7 +52,7 @@ describe("setCustomNavigationBarColor", () => {
if (isAndroid) {
const image = await program.screenshot({
deviceShot: true,
area: adbScreenShotArea,
area: screenShotArea,
});
expect(image).toSaveImageSnapshot();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册