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