@@ -16,6 +16,7 @@ interface PapiBackendTestMock {
1616 __mockGetOpenWebViewDefinition : jest . Mock ;
1717 __mockOnDidOpenWebView : jest . Mock ;
1818 __mockOnDidCloseWebView : jest . Mock ;
19+ __mockRegisterValidator : jest . Mock ;
1920 __mockLogger : { debug : jest . Mock ; error : jest . Mock ; info : jest . Mock ; warn : jest . Mock } ;
2021}
2122
@@ -34,6 +35,7 @@ function isPapiBackendTestMock(m: unknown): m is PapiBackendTestMock {
3435 '__mockGetOpenWebViewDefinition' in m &&
3536 '__mockOnDidOpenWebView' in m &&
3637 '__mockOnDidCloseWebView' in m &&
38+ '__mockRegisterValidator' in m &&
3739 '__mockLogger' in m
3840 ) ;
3941}
@@ -47,6 +49,7 @@ const {
4749 __mockGetOpenWebViewDefinition,
4850 __mockOnDidOpenWebView,
4951 __mockOnDidCloseWebView,
52+ __mockRegisterValidator,
5053 __mockLogger,
5154} = papiBackendMock ;
5255
@@ -117,6 +120,7 @@ describe('main', () => {
117120 beforeEach ( ( ) => {
118121 __mockRegisterWebViewProvider . mockResolvedValue ( { dispose : jest . fn ( ) } ) ;
119122 __mockRegisterCommand . mockResolvedValue ( { dispose : jest . fn ( ) } ) ;
123+ __mockRegisterValidator . mockResolvedValue ( { dispose : jest . fn ( ) } ) ;
120124 __mockOpenWebView . mockResolvedValue ( 'mock-webview-id' ) ;
121125 __mockSelectProject . mockResolvedValue ( undefined ) ;
122126 __mockGetOpenWebViewDefinition . mockResolvedValue ( undefined ) ;
@@ -151,12 +155,12 @@ describe('main', () => {
151155 ) ;
152156 } ) ;
153157
154- it ( 'adds all four registrations to the activation context' , async ( ) => {
158+ it ( 'adds all five registrations to the activation context' , async ( ) => {
155159 const context = createTestActivationContext ( ) ;
156160
157161 await activate ( context ) ;
158162
159- expect ( context . registrations . unsubscribers . size ) . toBe ( 4 ) ;
163+ expect ( context . registrations . unsubscribers . size ) . toBe ( 5 ) ;
160164 } ) ;
161165
162166 it ( 'logs activation start and finish' , async ( ) => {
0 commit comments