提交 74ed24b2 编写于 作者: L liuhui

fix: change caled to called

Signed-off-by: Nliuhui <liuhui@ohos.com.cn>
上级 80db5b26
......@@ -276,22 +276,22 @@ Example:
describe("AppInfoTest", function () {
beforeAll(function() {
// Set a setup function, which will be called before all test cases.
console.info('beforeAll caled')
console.info('beforeAll called')
})
afterAll(function() {
// Set a teardown function, which will be called after all test cases.
console.info('afterAll caled')
console.info('afterAll called')
})
beforeEach(function() {
// Set a setup function, which will be called before each test case.
console.info('beforeEach caled')
console.info('beforeEach called')
})
afterEach(function() {
// 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:
describe("AppInfoTest", function () {
beforeAll(function() {
// Set a setup function, which will be called before all test cases.
console.info('beforeAll caled')
console.info('beforeAll called')
})
afterAll(function() {
// Set a teardown function, which will be called after all test cases.
console.info('afterAll caled')
console.info('afterAll called')
})
beforeEach(function() {
// Set a setup function, which will be called before each test case.
console.info('beforeEach caled')
console.info('beforeEach called')
})
afterEach(function() {
// 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.
......
......@@ -235,22 +235,22 @@ Example:
describe("AppInfoTest", function () {
beforeAll(function() {
// Set a setup function, which will be called before all test cases.
console.info('beforeAll caled')
console.info('beforeAll called')
})
afterAll(function() {
// Set a teardown function, which will be called after all test cases.
console.info('afterAll caled')
console.info('afterAll called')
})
beforeEach(function() {
// Set a setup function, which will be called before each test case.
console.info('beforeEach caled')
console.info('beforeEach called')
})
afterEach(function() {
// 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:
describe("AppInfoTest", function () {
beforeAll(function() {
// Set a setup function, which will be called before all test cases.
console.info('beforeAll caled')
console.info('beforeAll called')
})
afterAll(function() {
// Set a teardown function, which will be called after all test cases.
console.info('afterAll caled')
console.info('afterAll called')
})
beforeEach(function() {
// Set a setup function, which will be called before each test case.
console.info('beforeEach caled')
console.info('beforeEach called')
})
afterEach(function() {
// 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.
......
......@@ -276,22 +276,22 @@ subsystem # 子系统
describe("AppInfoTest", function () {
beforeAll(function() {
// input testsuit setup step,setup invoked before all testcases
console.info('beforeAll caled')
console.info('beforeAll called')
})
afterAll(function() {
// input testsuit teardown step,teardown invoked after all testcases
console.info('afterAll caled')
console.info('afterAll called')
})
beforeEach(function() {
// input testcase setup step,setup invoked before each testcases
console.info('beforeEach caled')
console.info('beforeEach called')
})
afterEach(function() {
// input testcase teardown step,teardown invoked after each testcases
console.info('afterEach caled')
console.info('afterEach called')
})
/*
......@@ -338,22 +338,22 @@ subsystem # 子系统
describe("AppInfoTest", function () {
beforeAll(function() {
// input testsuit setup step,setup invoked before all testcases
console.info('beforeAll caled')
console.info('beforeAll called')
})
afterAll(function() {
// input testsuit teardown step,teardown invoked after all testcases
console.info('afterAll caled')
console.info('afterAll called')
})
beforeEach(function() {
// input testcase setup step,setup invoked before each testcases
console.info('beforeEach caled')
console.info('beforeEach called')
})
afterEach(function() {
// input testcase teardown step,teardown invoked after each testcases
console.info('afterEach caled')
console.info('afterEach called')
})
```
4. 测试用例实现
......
......@@ -235,22 +235,22 @@ subsystem # 子系统
describe("AppInfoTest", function () {
beforeAll(function() {
// input testsuit setup step,setup invoked before all testcases
console.info('beforeAll caled')
console.info('beforeAll called')
})
afterAll(function() {
// input testsuit teardown step,teardown invoked after all testcases
console.info('afterAll caled')
console.info('afterAll called')
})
beforeEach(function() {
// input testcase setup step,setup invoked before each testcases
console.info('beforeEach caled')
console.info('beforeEach called')
})
afterEach(function() {
// input testcase teardown step,teardown invoked after each testcases
console.info('afterEach caled')
console.info('afterEach called')
})
/*
......@@ -284,22 +284,22 @@ subsystem # 子系统
describe("AppInfoTest", function () {
beforeAll(function() {
// input testsuit setup step,setup invoked before all testcases
console.info('beforeAll caled')
console.info('beforeAll called')
})
afterAll(function() {
// input testsuit teardown step,teardown invoked after all testcases
console.info('afterAll caled')
console.info('afterAll called')
})
beforeEach(function() {
// input testcase setup step,setup invoked before each testcases
console.info('beforeEach caled')
console.info('beforeEach called')
})
afterEach(function() {
// input testcase teardown step,teardown invoked after each testcases
console.info('afterEach caled')
console.info('afterEach called')
})
```
4. 测试用例实现
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册