提交 1dffe306 编写于 作者: Y yangbo

fixbug no column 666

Signed-off-by: Nyangbo <yangbo258@h-partners.com>
上级 8bc055c9
......@@ -512,12 +512,12 @@ describe('albumTestCallBack.test.js', async function () {
};
try {
media.getAlbums(fileHasArgsfetchOp4, (err, albumList) => {
if (albumList == undefined) {
expect(false).assertTrue();
if (err != undefined) {
expect(true).assertTrue();
done();
} else {
console.info('GETALBUMASSETS_CALLBACK_002_07 length:' + albumList.length);
expect(albumList.length == 0).assertTrue();
expect(false).assertTrue();
done();
}
});
......@@ -544,12 +544,12 @@ describe('albumTestCallBack.test.js', async function () {
try {
media.getAlbums(fileHasArgsfetchOp5, (err, albumList) => {
if (albumList == undefined) {
expect(false).assertTrue();
if (err != undefined) {
expect(true).assertTrue();
done();
} else {
console.info('GETALBUMASSETS_CALLBACK_002_08 length:' + albumList.length);
expect(albumList.length == 0).assertTrue();
expect(false).assertTrue();
done();
}
});
......
......@@ -423,10 +423,18 @@ describe('albumTestPromise.test.js', async function () {
selectionArgs: [videoType.toString()],
};
try {
const albumList = await media.getAlbums(fileHasArgsfetchOp4);
console.info('GETALBUMASSETS_PROMISE_002_07 length:' + albumList.length);
expect(albumList.length == 0).assertTrue();
done();
media.getAlbums(fileHasArgsfetchOp4).then((albumList) => {
expect(false).assertTrue();
done();
}).catch((err) => {
if (err != undefined) {
expect(true).assertTrue();
done();
return;
}
expect(false).assertTrue();
done();
})
} catch (error) {
console.info('ALBUM_PROMISE getFileAssets 002_07 passed');
expect(false).assertTrue();
......@@ -449,10 +457,18 @@ describe('albumTestPromise.test.js', async function () {
};
try {
const albumList = await media.getAlbums(fileHasArgsfetchOp5);
console.info('GETALBUMASSETS_PROMISE_002_08 length:' + albumList.length);
expect(albumList.length == 0).assertTrue();
done();
media.getAlbums(fileHasArgsfetchOp5).then((albumList) => {
expect(false).assertTrue();
done();
}).catch((err) => {
if (err != undefined) {
expect(true).assertTrue();
done();
return;
}
expect(false).assertTrue();
done();
})
} catch (error) {
console.info('ALBUM_PROMISE getFileAssets 002_08 passed');
expect(false).assertTrue();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册