功能:增加店长员工审核与登录提醒
This commit is contained in:
@@ -27,6 +27,8 @@ function reset(preference) {
|
||||
navigations.length = 0
|
||||
appDefinition.globalData.userInfo = null
|
||||
appDefinition.globalData.wechatLoginState = null
|
||||
appDefinition.globalData.reviewNoticeShown = true
|
||||
appDefinition.globalData.openEmployeeReview = true
|
||||
codeSequence = 0
|
||||
}
|
||||
|
||||
@@ -40,6 +42,8 @@ async function run() {
|
||||
assert.strictEqual(appDefinition.globalData.userInfo.id, 1)
|
||||
assert.strictEqual(statusCalled, false)
|
||||
assert.strictEqual(codeSequence, 1)
|
||||
assert.strictEqual(appDefinition.globalData.reviewNoticeShown, false)
|
||||
assert.strictEqual(appDefinition.globalData.openEmployeeReview, false)
|
||||
|
||||
reset({ rememberMe: false })
|
||||
let quickLoginCalled = false
|
||||
@@ -66,6 +70,7 @@ async function run() {
|
||||
appDefinition.logoutDevice()
|
||||
assert.strictEqual(storage[LOGIN_PREFERENCE_KEY], undefined)
|
||||
assert.strictEqual(appDefinition.globalData.userInfo, null)
|
||||
assert.strictEqual(appDefinition.globalData.reviewNoticeShown, false)
|
||||
}
|
||||
|
||||
run().catch(error => {
|
||||
|
||||
Reference in New Issue
Block a user