提交 743dfc1d 编写于 作者: C chenkai008

修改测试用例

Signed-off-by: Nchenkai008 <chenkai154@huawei.com>
上级 e6c07a64
...@@ -129,7 +129,7 @@ describe('fileio_copyfile', function () { ...@@ -129,7 +129,7 @@ describe('fileio_copyfile', function () {
done(); done();
}); });
} catch (e) { } catch (e) {
console.log('fileio_copy_file_async_000 has failed for ' + e); console.log('fileio_copy_file_async_001 has failed for ' + e);
expect(null).assertFail(); expect(null).assertFail();
} }
}); });
...@@ -150,6 +150,7 @@ describe('fileio_copyfile', function () { ...@@ -150,6 +150,7 @@ describe('fileio_copyfile', function () {
expect(await fileio.copyFile(fpath, fpathTarget).indexOf('<pending>') > -1).assertTrue(); expect(await fileio.copyFile(fpath, fpathTarget).indexOf('<pending>') > -1).assertTrue();
expect(null).assertFail(); expect(null).assertFail();
} catch (e) { } catch (e) {
console.log('fileio_copy_file_async_002 has failed for ' + e);
done(); done();
} }
}); });
...@@ -169,14 +170,11 @@ describe('fileio_copyfile', function () { ...@@ -169,14 +170,11 @@ describe('fileio_copyfile', function () {
fileio fileio
.copyFile(1, fpath) .copyFile(1, fpath)
.then(function (err) { .then(function (err) {
})
.catch(function (e) {
expect(!!e).assertTrue();
done(); done();
}); })
} catch (e) { } catch (e) {
expect(!!e).assertTrue(); console.log('fileio_copy_file_async_003 has failed for ' + e);
done(); expect(null).assertFail();
} }
}); });
...@@ -198,6 +196,7 @@ describe('fileio_copyfile', function () { ...@@ -198,6 +196,7 @@ describe('fileio_copyfile', function () {
expect(null).assertFail(); expect(null).assertFail();
done(); done();
} catch (e) { } catch (e) {
console.log('fileio_copy_file_async_004 has failed for ' + e);
done(); done();
} }
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册