forked from Ivasoft/mattermost-mobile
fix test case
This commit is contained in:
@@ -45,7 +45,7 @@ const {
|
||||
describe('*** Test schema for SERVER database ***', () => {
|
||||
it('=> The SERVER SCHEMA should strictly match', () => {
|
||||
expect(serverSchema).toEqual({
|
||||
version: 1,
|
||||
version: 2,
|
||||
unsafeSql: undefined,
|
||||
tables: {
|
||||
[CATEGORY]: {
|
||||
@@ -92,6 +92,7 @@ describe('*** Test schema for SERVER database ***', () => {
|
||||
header: {name: 'header', type: 'string'},
|
||||
member_count: {name: 'member_count', type: 'number'},
|
||||
pinned_post_count: {name: 'pinned_post_count', type: 'number'},
|
||||
files_count: {name: 'files_count', type: 'number'},
|
||||
purpose: {name: 'purpose', type: 'string'},
|
||||
},
|
||||
columnArray: [
|
||||
@@ -99,6 +100,7 @@ describe('*** Test schema for SERVER database ***', () => {
|
||||
{name: 'header', type: 'string'},
|
||||
{name: 'member_count', type: 'number'},
|
||||
{name: 'pinned_post_count', type: 'number'},
|
||||
{name: 'files_count', type: 'number'},
|
||||
{name: 'purpose', type: 'string'},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -172,6 +172,7 @@ export const gqlToClientChannelStats = (s: Partial<GQLChannel>): ChannelStats =>
|
||||
guest_count: s.stats?.guestCount || 0,
|
||||
member_count: s.stats?.memberCount || 0,
|
||||
pinnedpost_count: s.stats?.pinnePostCount || 0,
|
||||
files_count: s.stats?.filesCount || 0,
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
1
types/api/graphql.d.ts
vendored
1
types/api/graphql.d.ts
vendored
@@ -174,6 +174,7 @@ type GQLStats = {
|
||||
guestCount: number;
|
||||
memberCount: number;
|
||||
pinnePostCount: number;
|
||||
filesCount: number;
|
||||
}
|
||||
|
||||
type GQLRole = {
|
||||
|
||||
Reference in New Issue
Block a user