验证20%
This commit is contained in:
@@ -38,6 +38,16 @@ test('profile view reads only the documented profile fields', () => {
|
||||
});
|
||||
});
|
||||
|
||||
test('profile loading failure has an explicit non-demo view', () => {
|
||||
assert.deepEqual(ProfilePages.buildUnavailableProfileView(), {
|
||||
displayName: '账户资料暂时无法读取',
|
||||
avatarText: '!',
|
||||
phone: '暂无数据',
|
||||
birthday: '暂无数据',
|
||||
regionText: '暂无数据'
|
||||
});
|
||||
});
|
||||
|
||||
test('profile update emits only the six fields defined by ProfileUpdateBody', () => {
|
||||
assert.deepEqual(ProfilePages.buildProfileUpdateBody({
|
||||
nickName: '小林',
|
||||
|
||||
Reference in New Issue
Block a user