未验证 提交 6b9d3a9b 编写于 作者: O openharmony_ci 提交者: Gitee

!1918 【分布式硬件】修正unAuthenticateDevice接口大小写错误

Merge pull request !1918 from zeng_xingdong/master
...@@ -588,8 +588,8 @@ describe('deviceManagerTest', function() { ...@@ -588,8 +588,8 @@ describe('deviceManagerTest', function() {
}) })
/* /*
* @tc.number deviceManagerTest_authenticateDevice_0100 * @tc.number deviceManagerTest_verifyAuthInfo_0100
* @tc.name testcase two for authenticateDevice in correct para * @tc.name testcase two for verifyAuthInfo in correct para
* @tc.desc Function test * @tc.desc Function test
* @tc.level 2 * @tc.level 2
*/ */
...@@ -618,13 +618,13 @@ describe('deviceManagerTest', function() { ...@@ -618,13 +618,13 @@ describe('deviceManagerTest', function() {
}) })
/* /*
* @tc.number deviceManagerTest_unauthenticateDevice_0100 * @tc.number deviceManagerTest_unAuthenticateDevice_0100
* @tc.name Pass in the normal deviceInfo、authParam,deviceType is UNKNOWN_TYPE * @tc.name Pass in the normal deviceInfo、authParam,deviceType is PHONE
* @tc.desc Function test * @tc.desc Function test
* @tc.level 0 * @tc.level 0
*/ */
it('deviceManagerTest_unauthenticateDevice_0100', 0, async function (done) { it('deviceManagerTest_unAuthenticateDevice_0100', 0, async function (done) {
console.log("----------start running deviceManagerTest_unauthenticateDevice_0100----------"); console.log("----------start running deviceManagerTest_unAuthenticateDevice_0100----------");
deviceManager.createDeviceManager('com.ohos.devicemangagerdemo', (err, data) => { deviceManager.createDeviceManager('com.ohos.devicemangagerdemo', (err, data) => {
if (err) { if (err) {
expect().assertFail(); expect().assertFail();
...@@ -635,11 +635,10 @@ describe('deviceManagerTest', function() { ...@@ -635,11 +635,10 @@ describe('deviceManagerTest', function() {
}) })
}); });
async function dmUnAuthenticateDevice(){ async function dmUnAuthenticateDevice(){
var unknownType = 0;
let deviceInfo = { let deviceInfo = {
deviceId: "", deviceId: "",
deviceName: "", deviceName: "",
deviceType: unknownType deviceType: PHONE
} }
let extraInfo = { let extraInfo = {
"targetPkgName": 'com.ohos.devicemangagerdemo', "targetPkgName": 'com.ohos.devicemangagerdemo',
...@@ -654,7 +653,7 @@ describe('deviceManagerTest', function() { ...@@ -654,7 +653,7 @@ describe('deviceManagerTest', function() {
"appThumbnail": new Uint8Array([]), "appThumbnail": new Uint8Array([]),
"extraInfo": extraInfo "extraInfo": extraInfo
} }
var result = dmClass.unauthenticateDevice(deviceInfo, authParam, (err, data) => { var result = dmClass.unAuthenticateDevice(deviceInfo, authParam, (err, data) => {
if (err) { if (err) {
expect().assertFail(); expect().assertFail();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册