@@ -41,9 +41,9 @@ describe('Test features from GetMessage', () => {
4141
4242describe('Test features from GetMessage', () => {
4343 const client = new BaseMessageClient()
44- it('Try by pageSize and page', async () => {
44+ it('Try by pagination and page', async () => {
4545 const res = await client.getAll({
46- pageSize : 5,
46+ pagination : 5,
4747 page: 2,
4848 })
4949 expect(res.messages.length).toStrictEqual(5)
@@ -112,7 +112,7 @@ describe('Test features from GetMessage', () => {
112112 const aimedType = 'testing_oversize'
113113 const res = await client.getAll({
114114 contentTypes: [aimedType],
115- pageSize : 10,
115+ pagination : 10,
116116 })
117117
118118 expect(res.messages.length).toBeGreaterThan(0)
@@ -126,7 +126,7 @@ describe('Test features from GetMessage', () => {
126126 const aimedTag = ['Test']
127127 const res = await client.getAll({
128128 tags: aimedTag,
129- pageSize : 10,
129+ pagination : 10,
130130 })
131131
132132 expect(res.messages.length).toBeGreaterThan(0)
@@ -141,7 +141,7 @@ describe('Test features from GetMessage', () => {
141141 const aimedKey = 'InterPlanetaryCloud'
142142 const res = await client.getAll({
143143 contentKeys: [aimedKey],
144- pageSize : 10,
144+ pagination : 10,
145145 })
146146
147147 expect(res.messages.length).toBeGreaterThan(0)
@@ -157,7 +157,7 @@ describe('Test features from GetMessage', () => {
157157 const res = await client.getAll({
158158 startDate: aimedStartTime,
159159 endDate: aimedEndTime,
160- pageSize : 5,
160+ pagination : 5,
161161 })
162162
163163 res.messages.map((item) => {
@@ -191,7 +191,7 @@ describe('Test features from GetMessage', () => {
191191 typeArray.map(async (type) => {
192192 const res = await client.getAll({
193193 messageTypes: [type],
194- pageSize : 3,
194+ pagination : 3,
195195 })
196196 expect(checkTypeList(res.messages, type)).toStrictEqual(true)
197197 }),
0 commit comments