提交 8d19a637 编写于 作者: Y yangbo

fix dateModified assertfail

Signed-off-by: Nyangbo <yangbo258@h-partners.com>
上级 c26e32c0
......@@ -146,7 +146,7 @@ export default function fileTestCallbackTest(abilityContext) {
fetchFileResult = await media.getFileAssets(idOP);
let newAsset = await fetchFileResult.getFirstObject();
expect(isNum(newAsset.dateModified)).assertTrue();
expect(newAsset.dateModified != asset.dateModified).assertTrue()
expect(newAsset.dateModified).assertEqual(asset.dateModified);
done();
});
} catch (error) {
......
......@@ -130,7 +130,7 @@ export default function fileTestPromiseTest(abilityContext) {
fetchFileResult = await media.getFileAssets(idOP);
let newAsset = await fetchFileResult.getFirstObject();
expect(isNum(newAsset.dateModified)).assertTrue();
expect(newAsset.dateModified != asset.dateModified).assertTrue()
expect(newAsset.dateModified).assertEqual(asset.dateModified);
done();
} catch (error) {
console.info(`${testNum} failed error: ${error}`)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册