未验证 提交 87b3e8e1 编写于 作者: O openharmony_ci 提交者: Gitee

!2933 修改测试用例

Merge pull request !2933 from chenkai008/master
...@@ -112,7 +112,7 @@ describe("volumeManager", function () { ...@@ -112,7 +112,7 @@ describe("volumeManager", function () {
await volumeManager.getAllVolumes(2); await volumeManager.getAllVolumes(2);
} catch (error) { } catch (error) {
console.log(`volume_manager_test_get_all_Volumes_async_002 has failed for error ${error}`); console.log(`volume_manager_test_get_all_Volumes_async_002 has failed for error ${error}`);
expect(isInclude(error, "The callback shall be a funciton")).assertTrue(); expect(isInclude(error, "The callback shall be a function")).assertTrue();
} }
done(); done();
}); });
...@@ -132,7 +132,7 @@ describe("volumeManager", function () { ...@@ -132,7 +132,7 @@ describe("volumeManager", function () {
expect(null).assertFail(); expect(null).assertFail();
} catch (error) { } catch (error) {
console.log(`volume_manager_test_get_all_Volumes_async_003 has failed for error ${error}`); console.log(`volume_manager_test_get_all_Volumes_async_003 has failed for error ${error}`);
expect(isInclude(error, "The callback shall be a funciton")).assertTrue(); expect(isInclude(error, "The callback shall be a function")).assertTrue();
} }
done(); done();
}); });
...@@ -157,7 +157,7 @@ describe("volumeManager", function () { ...@@ -157,7 +157,7 @@ describe("volumeManager", function () {
console.log(`volume_manager_test_get_all_Volumes_async_004 has failed f console.log(`volume_manager_test_get_all_Volumes_async_004 has failed f
or error ${error}`); or error ${error}`);
expect(isInclude(error, "The callback shall be a funciton")).assertTrue(); expect(isInclude(error, "The callback shall be a function")).assertTrue();
} }
done(); done();
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册