diff --git a/storage/storagesecuritylabeljstest/src/main/js/default/test/securitylabel.test.js b/storage/storagesecuritylabeljstest/src/main/js/default/test/securitylabel.test.js index ed7dc4f99695eef674a83f8301744a6c006d57cd..cf151e1427839390b71fef3ccc22f9657beb3f4c 100644 --- a/storage/storagesecuritylabeljstest/src/main/js/default/test/securitylabel.test.js +++ b/storage/storagesecuritylabeljstest/src/main/js/default/test/securitylabel.test.js @@ -227,6 +227,8 @@ describe('securitylabel', function () { try { let flag = await securitylabel.setSecurityLabel(fpath, ''); expect(flag == false).assertTrue(); + let dataLevel = await securitylabel.getSecurityLabel(fpath); + expect(dataLevel == '').assertTrue(); expect(fileio.unlinkSync(fpath) == null).assertTrue(); done(); } catch (e) { @@ -252,6 +254,8 @@ describe('securitylabel', function () { try { let flag = await securitylabel.setSecurityLabel(fpath, 'ss'); expect(flag == false).assertTrue(); + let dataLevel = await securitylabel.getSecurityLabel(fpath); + expect(dataLevel == '').assertTrue(); expect(fileio.unlinkSync(fpath) == null).assertTrue(); done(); } catch (e) {