1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
| import assert from 'node:assert/strict'
| import test from 'node:test'
|
| const { createUserLoginApiParams, userLoginPaginationKey } = await import(
| '../src/views/system/user-login/userLoginTable.config.js'
| )
|
| test('user login page uses the backend pageSize pagination contract', () => {
| assert.deepEqual(userLoginPaginationKey, {
| current: 'current',
| size: 'pageSize'
| })
| })
|
| test('user login page builds initial params with pageSize instead of size', () => {
| assert.deepEqual(
| createUserLoginApiParams({
| token: 'abc',
| ip: '127.0.0.1',
| system: 'wms'
| }),
| {
| current: 1,
| pageSize: 20,
| token: 'abc',
| ip: '127.0.0.1',
| system: 'wms'
| }
| )
| })
|
|