未验证 提交 47d1ac7f 编写于 作者: O openharmony_ci 提交者: Gitee

!4379 【OpenHarmony开源贡献者计划2022】fix: change caled to called

Merge pull request !4379 from rtos_ming/caled
...@@ -276,22 +276,22 @@ Example: ...@@ -276,22 +276,22 @@ Example:
describe("AppInfoTest", function () { describe("AppInfoTest", function () {
beforeAll(function() { beforeAll(function() {
// Set a setup function, which will be called before all test cases. // Set a setup function, which will be called before all test cases.
console.info('beforeAll caled') console.info('beforeAll called')
}) })
afterAll(function() { afterAll(function() {
// Set a teardown function, which will be called after all test cases. // Set a teardown function, which will be called after all test cases.
console.info('afterAll caled') console.info('afterAll called')
}) })
beforeEach(function() { beforeEach(function() {
// Set a setup function, which will be called before each test case. // Set a setup function, which will be called before each test case.
console.info('beforeEach caled') console.info('beforeEach called')
}) })
afterEach(function() { afterEach(function() {
// Set a teardown function, which will be called after each test case. // Set a teardown function, which will be called after each test case.
console.info('afterEach caled') console.info('afterEach called')
}) })
/* /*
...@@ -338,22 +338,22 @@ Example: ...@@ -338,22 +338,22 @@ Example:
describe("AppInfoTest", function () { describe("AppInfoTest", function () {
beforeAll(function() { beforeAll(function() {
// Set a setup function, which will be called before all test cases. // Set a setup function, which will be called before all test cases.
console.info('beforeAll caled') console.info('beforeAll called')
}) })
afterAll(function() { afterAll(function() {
// Set a teardown function, which will be called after all test cases. // Set a teardown function, which will be called after all test cases.
console.info('afterAll caled') console.info('afterAll called')
}) })
beforeEach(function() { beforeEach(function() {
// Set a setup function, which will be called before each test case. // Set a setup function, which will be called before each test case.
console.info('beforeEach caled') console.info('beforeEach called')
}) })
afterEach(function() { afterEach(function() {
// Set a teardown function, which will be called after each test case. // Set a teardown function, which will be called after each test case.
console.info('afterEach caled') console.info('afterEach called')
}) })
``` ```
4. Add implementation of the test cases. 4. Add implementation of the test cases.
......
...@@ -235,22 +235,22 @@ Example: ...@@ -235,22 +235,22 @@ Example:
describe("AppInfoTest", function () { describe("AppInfoTest", function () {
beforeAll(function() { beforeAll(function() {
// Set a setup function, which will be called before all test cases. // Set a setup function, which will be called before all test cases.
console.info('beforeAll caled') console.info('beforeAll called')
}) })
afterAll(function() { afterAll(function() {
// Set a teardown function, which will be called after all test cases. // Set a teardown function, which will be called after all test cases.
console.info('afterAll caled') console.info('afterAll called')
}) })
beforeEach(function() { beforeEach(function() {
// Set a setup function, which will be called before each test case. // Set a setup function, which will be called before each test case.
console.info('beforeEach caled') console.info('beforeEach called')
}) })
afterEach(function() { afterEach(function() {
// Set a teardown function, which will be called after each test case. // Set a teardown function, which will be called after each test case.
console.info('afterEach caled') console.info('afterEach called')
}) })
/* /*
...@@ -284,22 +284,22 @@ Example: ...@@ -284,22 +284,22 @@ Example:
describe("AppInfoTest", function () { describe("AppInfoTest", function () {
beforeAll(function() { beforeAll(function() {
// Set a setup function, which will be called before all test cases. // Set a setup function, which will be called before all test cases.
console.info('beforeAll caled') console.info('beforeAll called')
}) })
afterAll(function() { afterAll(function() {
// Set a teardown function, which will be called after all test cases. // Set a teardown function, which will be called after all test cases.
console.info('afterAll caled') console.info('afterAll called')
}) })
beforeEach(function() { beforeEach(function() {
// Set a setup function, which will be called before each test case. // Set a setup function, which will be called before each test case.
console.info('beforeEach caled') console.info('beforeEach called')
}) })
afterEach(function() { afterEach(function() {
// Set a teardown function, which will be called after each test case. // Set a teardown function, which will be called after each test case.
console.info('afterEach caled') console.info('afterEach called')
}) })
``` ```
4. Add implementation of the test cases. 4. Add implementation of the test cases.
......
...@@ -276,22 +276,22 @@ subsystem # 子系统 ...@@ -276,22 +276,22 @@ subsystem # 子系统
describe("AppInfoTest", function () { describe("AppInfoTest", function () {
beforeAll(function() { beforeAll(function() {
// input testsuit setup step,setup invoked before all testcases // input testsuit setup step,setup invoked before all testcases
console.info('beforeAll caled') console.info('beforeAll called')
}) })
afterAll(function() { afterAll(function() {
// input testsuit teardown step,teardown invoked after all testcases // input testsuit teardown step,teardown invoked after all testcases
console.info('afterAll caled') console.info('afterAll called')
}) })
beforeEach(function() { beforeEach(function() {
// input testcase setup step,setup invoked before each testcases // input testcase setup step,setup invoked before each testcases
console.info('beforeEach caled') console.info('beforeEach called')
}) })
afterEach(function() { afterEach(function() {
// input testcase teardown step,teardown invoked after each testcases // input testcase teardown step,teardown invoked after each testcases
console.info('afterEach caled') console.info('afterEach called')
}) })
/* /*
...@@ -338,22 +338,22 @@ subsystem # 子系统 ...@@ -338,22 +338,22 @@ subsystem # 子系统
describe("AppInfoTest", function () { describe("AppInfoTest", function () {
beforeAll(function() { beforeAll(function() {
// input testsuit setup step,setup invoked before all testcases // input testsuit setup step,setup invoked before all testcases
console.info('beforeAll caled') console.info('beforeAll called')
}) })
afterAll(function() { afterAll(function() {
// input testsuit teardown step,teardown invoked after all testcases // input testsuit teardown step,teardown invoked after all testcases
console.info('afterAll caled') console.info('afterAll called')
}) })
beforeEach(function() { beforeEach(function() {
// input testcase setup step,setup invoked before each testcases // input testcase setup step,setup invoked before each testcases
console.info('beforeEach caled') console.info('beforeEach called')
}) })
afterEach(function() { afterEach(function() {
// input testcase teardown step,teardown invoked after each testcases // input testcase teardown step,teardown invoked after each testcases
console.info('afterEach caled') console.info('afterEach called')
}) })
``` ```
4. 测试用例实现 4. 测试用例实现
......
...@@ -235,22 +235,22 @@ subsystem # 子系统 ...@@ -235,22 +235,22 @@ subsystem # 子系统
describe("AppInfoTest", function () { describe("AppInfoTest", function () {
beforeAll(function() { beforeAll(function() {
// input testsuit setup step,setup invoked before all testcases // input testsuit setup step,setup invoked before all testcases
console.info('beforeAll caled') console.info('beforeAll called')
}) })
afterAll(function() { afterAll(function() {
// input testsuit teardown step,teardown invoked after all testcases // input testsuit teardown step,teardown invoked after all testcases
console.info('afterAll caled') console.info('afterAll called')
}) })
beforeEach(function() { beforeEach(function() {
// input testcase setup step,setup invoked before each testcases // input testcase setup step,setup invoked before each testcases
console.info('beforeEach caled') console.info('beforeEach called')
}) })
afterEach(function() { afterEach(function() {
// input testcase teardown step,teardown invoked after each testcases // input testcase teardown step,teardown invoked after each testcases
console.info('afterEach caled') console.info('afterEach called')
}) })
/* /*
...@@ -284,22 +284,22 @@ subsystem # 子系统 ...@@ -284,22 +284,22 @@ subsystem # 子系统
describe("AppInfoTest", function () { describe("AppInfoTest", function () {
beforeAll(function() { beforeAll(function() {
// input testsuit setup step,setup invoked before all testcases // input testsuit setup step,setup invoked before all testcases
console.info('beforeAll caled') console.info('beforeAll called')
}) })
afterAll(function() { afterAll(function() {
// input testsuit teardown step,teardown invoked after all testcases // input testsuit teardown step,teardown invoked after all testcases
console.info('afterAll caled') console.info('afterAll called')
}) })
beforeEach(function() { beforeEach(function() {
// input testcase setup step,setup invoked before each testcases // input testcase setup step,setup invoked before each testcases
console.info('beforeEach caled') console.info('beforeEach called')
}) })
afterEach(function() { afterEach(function() {
// input testcase teardown step,teardown invoked after each testcases // input testcase teardown step,teardown invoked after each testcases
console.info('afterEach caled') console.info('afterEach called')
}) })
``` ```
4. 测试用例实现 4. 测试用例实现
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册