File tree Expand file tree Collapse file tree
extensions/ql-vscode/src/vscode-tests/no-workspace/contextual Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,10 +18,13 @@ describe('queryResolver', () => {
1818 let writeFileSpy : sinon . SinonSpy ;
1919 let getQlPackForDbschemeSpy : sinon . SinonStub ;
2020 let getPrimaryDbschemeSpy : sinon . SinonStub ;
21- let mockCli : Record < string , sinon . SinonStub > ;
21+ let mockCli : Record < string , sinon . SinonStub | Record < string , sinon . SinonStub > > ;
2222 beforeEach ( ( ) => {
2323 mockCli = {
24- resolveQueriesInSuite : sinon . stub ( )
24+ resolveQueriesInSuite : sinon . stub ( ) ,
25+ cliConstraints : {
26+ supportsAllowLibraryPacksInResolveQueries : sinon . stub ( ) . returns ( true ) ,
27+ }
2528 } ;
2629 module = createModule ( ) ;
2730 } ) ;
@@ -48,12 +51,12 @@ describe('queryResolver', () => {
4851 // TODO: Figure out why chai-as-promised isn't failing the test on an
4952 // unhandled rejection.
5053 try {
51- await module . resolveQueries ( mockCli , 'my-qlpack' , KeyType . DefinitionQuery ) ;
54+ await module . resolveQueries ( mockCli , { dbschemePack : 'my-qlpack' } , KeyType . DefinitionQuery ) ;
5255 // should reject
5356 expect ( true ) . to . be . false ;
5457 } catch ( e ) {
5558 expect ( e . message ) . to . eq (
56- 'Couldn\'t find any queries tagged ide-contextual-queries/local-definitions for qlpack my-qlpack'
59+ 'Couldn\'t find any queries tagged ide-contextual-queries/local-definitions in any of the following packs: my-qlpack. '
5760 ) ;
5861 }
5962 } ) ;
You can’t perform that action at this time.
0 commit comments