mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Convert to async/await
GitOrigin-RevId: 45c139a64c848650f1f51e64e8ebd233211241fb
This commit is contained in:
@@ -38,7 +38,7 @@ describe('Notifications Tests', () => {
|
||||
ObjectId,
|
||||
}))
|
||||
|
||||
notifications = await import(modulePath)
|
||||
notifications = (await import(modulePath)).default
|
||||
|
||||
stubbedNotification = {
|
||||
user_id: new ObjectId(userId),
|
||||
|
||||
@@ -23,7 +23,9 @@ describe('Notifications Controller', () => {
|
||||
removeNotificationKey: vi.fn(),
|
||||
}
|
||||
|
||||
vi.doMock('../../../app/js/Notifications', () => notifications)
|
||||
vi.doMock('../../../app/js/Notifications', () => ({
|
||||
default: notifications,
|
||||
}))
|
||||
|
||||
vi.doMock('@overleaf/metrics', () => ({
|
||||
default: {
|
||||
|
||||
Reference in New Issue
Block a user