fix(plugin-users): fix test with sort field

This commit is contained in:
mytharcher 2024-08-28 12:21:59 +08:00
parent b83435eb2b
commit 54d51e3d23
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ describe('api', async () => {
beforeEach(async () => {
app = await createMockServer({
plugins: ['user-data-sync'],
plugins: ['field-sort', 'user-data-sync'],
});
agent = app.agent();
const plugin = app.pm.get('user-data-sync') as PluginUserDataSyncServer;

View File

@ -18,7 +18,7 @@ describe('user data sync', () => {
beforeEach(async () => {
app = await createMockServer({
plugins: ['user-data-sync', 'users'],
plugins: ['field-sort', 'user-data-sync', 'users'],
});
db = app.db;
const plugin = app.pm.get('user-data-sync') as PluginUserDataSyncServer;