mirror of
https://github.com/flarum/framework.git
synced 2024-12-01 05:53:45 +08:00
tet: adapt frontend tests
This commit is contained in:
parent
1fe426aba9
commit
f3b819009b
|
@ -7,7 +7,7 @@ test('gambits are converted to filters', function () {
|
|||
q: 'lorem',
|
||||
created: '2023-07-07',
|
||||
hidden: true,
|
||||
author: ['behz'],
|
||||
author: 'behz',
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -16,7 +16,7 @@ test('gambits are negated when prefixed with a dash', function () {
|
|||
q: 'lorem',
|
||||
'-created': '2023-07-07',
|
||||
'-hidden': true,
|
||||
'-author': ['behz'],
|
||||
'-author': 'behz',
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -29,6 +29,6 @@ test('gambits are only applied for the correct resource type', function () {
|
|||
q: 'lorem email:behz@machine.local',
|
||||
created: '2023-07-07..2023-10-18',
|
||||
hidden: true,
|
||||
'-author': ['behz'],
|
||||
'-author': 'behz',
|
||||
});
|
||||
});
|
||||
|
|
|
@ -19,11 +19,25 @@ function bootApp() {
|
|||
{
|
||||
type: 'forums',
|
||||
id: '1',
|
||||
attributes: {},
|
||||
attributes: {
|
||||
canEditUserCredentials: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'users',
|
||||
id: '1',
|
||||
attributes: {
|
||||
id: 1,
|
||||
username: 'admin',
|
||||
displayName: 'Admin',
|
||||
email: 'admin@machine.local',
|
||||
joinTime: '2021-01-01T00:00:00Z',
|
||||
isEmailConfirmed: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
session: {
|
||||
userId: 0,
|
||||
userId: 1,
|
||||
csrfToken: 'test',
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user