17
17
***********************************************************************/
18
18
import { beforeEach , expect , test , vi } from 'vitest' ;
19
19
import { LocalRepositoryRegistry } from './LocalRepositoryRegistry' ;
20
- import { MSG_LOCAL_REPOSITORY_UPDATE } from '@shared/Messages' ;
20
+ import { Messages } from '@shared/Messages' ;
21
21
import type { Webview } from '@podman-desktop/api' ;
22
22
23
23
const mocks = vi . hoisted ( ( ) => ( {
@@ -51,7 +51,7 @@ test('should notify webview when register', () => {
51
51
} as unknown as Webview ) ;
52
52
localRepositories . register ( { path : 'random' , labels : { 'recipe-id' : 'random' } } ) ;
53
53
expect ( mocks . postMessageMock ) . toHaveBeenNthCalledWith ( 1 , {
54
- id : MSG_LOCAL_REPOSITORY_UPDATE ,
54
+ id : Messages . MSG_LOCAL_REPOSITORY_UPDATE ,
55
55
body : [ { path : 'random' , labels : { 'recipe-id' : 'random' } } ] ,
56
56
} ) ;
57
57
} ) ;
@@ -64,7 +64,7 @@ test('should notify webview when unregister', () => {
64
64
localRepositories . unregister ( 'random' ) ;
65
65
66
66
expect ( mocks . postMessageMock ) . toHaveBeenLastCalledWith ( {
67
- id : MSG_LOCAL_REPOSITORY_UPDATE ,
67
+ id : Messages . MSG_LOCAL_REPOSITORY_UPDATE ,
68
68
body : [ ] ,
69
69
} ) ;
70
70
} ) ;
0 commit comments