update interfaces/kits/napi/test/unittest/pasteboardapi/PasteBoardPromiseJsunit.test.js.

Signed-off-by: zuotao <zuotao2@huawei.com>
This commit is contained in:
zuotao 2023-04-23 12:01:57 +00:00 committed by Gitee
parent 01c2d2760e
commit 3b0988ec2a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -835,11 +835,11 @@ describe('PasteBoardJSTest', function () {
let pasteDataRecord = pasteboard.createUriRecord(uriText1);
let replace = pasteData1.replaceRecordAt(0, pasteDataRecord);
expect(replace).assertEqual(true);
let primaryUri = pasteData1.getPrimaryUri();
expect(primaryUri).assertEqual(uriText1);
let primaryUri1 = pasteData1.getPrimaryUri();
expect(primaryUri1).assertEqual(uriText1);
expect(pasteData1.hasMimeType(pasteboard.MIMETYPE_TEXT_URI)).assertEqual(true);
let primaryUri = pasteData1.getPrimaryUri();
expect(primaryUri).assertEqual(uriText1);
let primaryUri2 = pasteData1.getPrimaryUri();
expect(primaryUri2).assertEqual(uriText1);
done();
});
});