mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
indexId as Int not String
This commit is contained in:
parent
06b15dcd5c
commit
a961f88cff
@ -257,7 +257,7 @@ describe('Message', () => {
|
||||
Message: [
|
||||
expect.objectContaining({
|
||||
id: expect.any(String),
|
||||
indexId: '0',
|
||||
indexId: 0,
|
||||
content: 'Some nice message to other chatting user',
|
||||
senderId: 'chatting-user',
|
||||
username: 'Chatting User',
|
||||
@ -266,7 +266,7 @@ describe('Message', () => {
|
||||
}),
|
||||
expect.objectContaining({
|
||||
id: expect.any(String),
|
||||
indexId: '1',
|
||||
indexId: 1,
|
||||
content: 'A nice response message to chatting user',
|
||||
senderId: 'other-chatting-user',
|
||||
username: 'Other Chatting User',
|
||||
@ -275,7 +275,7 @@ describe('Message', () => {
|
||||
}),
|
||||
expect.objectContaining({
|
||||
id: expect.any(String),
|
||||
indexId: '2',
|
||||
indexId: 2,
|
||||
content: 'And another nice message to other chatting user',
|
||||
senderId: 'chatting-user',
|
||||
username: 'Chatting User',
|
||||
@ -303,7 +303,7 @@ describe('Message', () => {
|
||||
Message: [
|
||||
expect.objectContaining({
|
||||
id: expect.any(String),
|
||||
indexId: '1',
|
||||
indexId: 1,
|
||||
content: 'A nice response message to chatting user',
|
||||
senderId: 'other-chatting-user',
|
||||
username: 'Other Chatting User',
|
||||
@ -312,7 +312,7 @@ describe('Message', () => {
|
||||
}),
|
||||
expect.objectContaining({
|
||||
id: expect.any(String),
|
||||
indexId: '2',
|
||||
indexId: 2,
|
||||
content: 'And another nice message to other chatting user',
|
||||
senderId: 'chatting-user',
|
||||
username: 'Chatting User',
|
||||
@ -338,7 +338,7 @@ describe('Message', () => {
|
||||
Message: [
|
||||
expect.objectContaining({
|
||||
id: expect.any(String),
|
||||
indexId: '0',
|
||||
indexId: 0,
|
||||
content: 'Some nice message to other chatting user',
|
||||
senderId: 'chatting-user',
|
||||
username: 'Chatting User',
|
||||
|
||||
@ -9,7 +9,7 @@ enum _MessageOrdering {
|
||||
|
||||
type Message {
|
||||
id: ID!
|
||||
indexId: String!
|
||||
indexId: Int!
|
||||
createdAt: String
|
||||
updatedAt: String
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user