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

add 'offset' parameters test

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