提交 5c82bc8d 编写于 作者: Z zhangxingxia

add 'offset' parameters test

Signed-off-by: Nzhangxingxia <zhangxingxia1@huawei.com>
上级 56e62004
...@@ -243,11 +243,16 @@ describe("filemanager_test", function () { ...@@ -243,11 +243,16 @@ describe("filemanager_test", function () {
it("filemanager_test_list_file_async_002", 0, async function (done) { it("filemanager_test_list_file_async_002", 0, async function (done) {
try { try {
let path = FILE_ROOT; let path = FILE_ROOT;
filemanager.listFile(path, "file", function(error,fileInfos){ let options = {
LENGTH = fileInfos.length; dev:{
expect(Array.isArray(fileInfos)).assertTrue(); "name":"local"
done(); },
}); offset:0
};
let fileInfos = await filemanager.listFile(path, "file",options);
LENGTH = fileInfos.length;
expect(Array.isArray(fileInfos)).assertTrue();
done();
} catch (error) { } catch (error) {
console.log("filemanager_test_list_file_async_002 has failed for " + error); console.log("filemanager_test_list_file_async_002 has failed for " + error);
expect(null).assertFail(); expect(null).assertFail();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册