提交 e31ae7e7 编写于 作者: Y y00314596

modify cases on 20210916 by yangqing3@huawei.com

Signed-off-by: Ny00314596 <yangqing3@huawei.com>
上级 9b2f453e
......@@ -12,4 +12,4 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require('./I18n.test.js')
\ No newline at end of file
require('./Intl.test.js')
\ No newline at end of file
......@@ -12,11 +12,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import resmgr from "@ohos.resourceManager"
import resmgr from '@ohos.resourceManager'
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
describe('resMgrTest', function () {
console.log("*************00000000000000000000000*************");
console.log('*************start ResmgrTest*************');
/* *
* @tc.number SUB_GLOBAL_RESMGR_JS_0100
......@@ -36,7 +36,7 @@ describe('resMgrTest', function () {
* @tc.desc get the resource manager in callback mode with bundlename
*/
it('getResourceManager_test_002', 0, async function (done) {
resmgr.getResourceManager("com.ohos.settings", (error, mgr) => {
resmgr.getResourceManager('com.ohos.settings', (error, mgr) => {
expect(mgr !== null).assertTrue();
})
done();
......@@ -60,7 +60,7 @@ describe('resMgrTest', function () {
* @tc.desc get the resource manager in promise mode with bundlename
*/
it('getResourceManager_test_004', 0, async function (done) {
resmgr.getResourceManager("com.ohos.settings").then(mgr => {
resmgr.getResourceManager('com.ohos.settings').then(mgr => {
expect(mgr !== null).assertTrue();
})
done();
......@@ -261,4 +261,5 @@ describe('resMgrTest', function () {
})
done();
})
console.log('*************end ResmgrTest*************');
})
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册