提交 2039b062 编写于 作者: D dongwei

add test cases

Signed-off-by: Ndongwei <dongwei@kaihongdigi.com>
上级 601d950b
...@@ -29,7 +29,7 @@ describe('toolbarPropsJsTest', function () { ...@@ -29,7 +29,7 @@ describe('toolbarPropsJsTest', function () {
}).then(() => { }).then(() => {
console.info(`sleep ${time} over...`) console.info(`sleep ${time} over...`)
}) })
}; }
async function backToIndex() { async function backToIndex() {
let backToIndexPromise = new Promise((resolve, reject) => { let backToIndexPromise = new Promise((resolve, reject) => {
......
...@@ -29,7 +29,7 @@ describe('toolbarPropsJsTest', function () { ...@@ -29,7 +29,7 @@ describe('toolbarPropsJsTest', function () {
}).then(() => { }).then(() => {
console.info(`sleep ${time} over...`) console.info(`sleep ${time} over...`)
}) })
}; }
async function backToIndex() { async function backToIndex() {
let backToIndexPromise = new Promise((resolve, reject) => { let backToIndexPromise = new Promise((resolve, reject) => {
......
...@@ -29,7 +29,7 @@ describe('toolbarPropsJsTest', function () { ...@@ -29,7 +29,7 @@ describe('toolbarPropsJsTest', function () {
}).then(() => { }).then(() => {
console.info(`sleep ${time} over...`) console.info(`sleep ${time} over...`)
}) })
}; }
async function backToIndex() { async function backToIndex() {
let backToIndexPromise = new Promise((resolve, reject) => { let backToIndexPromise = new Promise((resolve, reject) => {
......
...@@ -27,7 +27,7 @@ describe('chartPropsJsTest', function () { ...@@ -27,7 +27,7 @@ describe('chartPropsJsTest', function () {
}).then(() => { }).then(() => {
console.info(`sleep ${time} over...`) console.info(`sleep ${time} over...`)
}) })
}; }
async function backToIndex() { async function backToIndex() {
let backToIndexPromise = new Promise((resolve, reject) => { let backToIndexPromise = new Promise((resolve, reject) => {
setTimeout(() => { setTimeout(() => {
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
}).then(() => { }).then(() => {
console.info(`sleep ${time} over...`) console.info(`sleep ${time} over...`)
}) })
}; }
async function backToIndex() { async function backToIndex() {
let backToIndexPromise = new Promise((resolve, reject) => { let backToIndexPromise = new Promise((resolve, reject) => {
......
...@@ -29,7 +29,7 @@ describe('toolbarPropsJsTest', function () { ...@@ -29,7 +29,7 @@ describe('toolbarPropsJsTest', function () {
}).then(() => { }).then(() => {
console.info(`sleep ${time} over...`) console.info(`sleep ${time} over...`)
}) })
}; }
async function backToIndex() { async function backToIndex() {
let backToIndexPromise = new Promise((resolve, reject) => { let backToIndexPromise = new Promise((resolve, reject) => {
......
...@@ -29,7 +29,7 @@ describe('toolbarPropsJsTest', function () { ...@@ -29,7 +29,7 @@ describe('toolbarPropsJsTest', function () {
}).then(() => { }).then(() => {
console.info(`sleep ${time} over...`) console.info(`sleep ${time} over...`)
}) })
}; }
async function backToIndex() { async function backToIndex() {
let backToIndexPromise = new Promise((resolve, reject) => { let backToIndexPromise = new Promise((resolve, reject) => {
......
...@@ -27,7 +27,7 @@ describe('togglePropsJsTest', function () { ...@@ -27,7 +27,7 @@ describe('togglePropsJsTest', function () {
}).then(() => { }).then(() => {
console.info(`sleep ${time} over...`) console.info(`sleep ${time} over...`)
}) })
}; }
async function backToIndex() { async function backToIndex() {
let backToIndexPromise = new Promise((resolve, reject) => { let backToIndexPromise = new Promise((resolve, reject) => {
......
...@@ -29,7 +29,7 @@ describe('toolbarPropsJsTest', function () { ...@@ -29,7 +29,7 @@ describe('toolbarPropsJsTest', function () {
}).then(() => { }).then(() => {
console.info(`sleep ${time} over...`) console.info(`sleep ${time} over...`)
}) })
}; }
async function backToIndex() { async function backToIndex() {
let backToIndexPromise = new Promise((resolve, reject) => { let backToIndexPromise = new Promise((resolve, reject) => {
......
...@@ -29,7 +29,7 @@ describe('toolbarPropsJsTest', function () { ...@@ -29,7 +29,7 @@ describe('toolbarPropsJsTest', function () {
}).then(() => { }).then(() => {
console.info(`sleep ${time} over...`) console.info(`sleep ${time} over...`)
}) })
}; }
async function backToIndex() { async function backToIndex() {
let backToIndexPromise = new Promise((resolve, reject) => { let backToIndexPromise = new Promise((resolve, reject) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册