提交 56e62004 编写于 作者: Z zhangxingxia

add 'offset' parameters test

Signed-off-by: Nzhangxingxia <zhangxingxia1@huawei.com>
上级 6e4ba4ce
......@@ -35,6 +35,7 @@ let FILE_ROOT = "";
let AUDIO_ROOT = "";
let IMAGE_ALBUM = "";
let LOG_ = "FMS_XTS_TEXT: ";
let LENGTH = 0;
describe("filemanager_test", function () {
/**
......@@ -243,6 +244,7 @@ describe("filemanager_test", function () {
try {
let path = FILE_ROOT;
filemanager.listFile(path, "file", function(error,fileInfos){
LENGTH = fileInfos.length;
expect(Array.isArray(fileInfos)).assertTrue();
done();
});
......@@ -302,6 +304,7 @@ describe("filemanager_test", function () {
};
filemanager.listFile(path, "file", options, function(error,fileInfos){
expect(Array.isArray(fileInfos)).assertTrue();
expect(fileInfos.length == LENGTH-2).assertTrue();
done();
});
} catch (error) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册