@@ -9,10 +9,12 @@ import { Credentials } from '../../../authentication';
99import { MarkdownFile } from '../../../remote-queries/remote-queries-markdown-generation' ;
1010import * as actionsApiClient from '../../../remote-queries/gh-api/gh-actions-api-client' ;
1111import { exportResultsToGist } from '../../../remote-queries/export-results' ;
12+ import { CUSTOM_CODEQL_PATH_SETTING , getRemoteControllerRepo , getRemoteRepositoryLists , setRemoteControllerRepo , setRemoteRepositoryLists } from '../../../config' ;
13+ import { allTestSettings } from '../../test-config' ;
1214
1315const proxyquire = pq . noPreserveCache ( ) ;
1416
15- describe ( 'export results' , async function ( ) {
17+ describe . only ( 'export results' , async function ( ) {
1618 describe ( 'exportResultsToGist' , async function ( ) {
1719 let sandbox : sinon . SinonSandbox ;
1820 let mockCredentials : Credentials ;
@@ -40,6 +42,24 @@ describe('export results', async function() {
4042 sandbox . restore ( ) ;
4143 } ) ;
4244
45+ it ( 'a' , ( ) => {
46+ expect ( Object . values ( allTestSettings ) . length ) . to . be . equal ( 21 ) ;
47+ } ) ;
48+
49+ it ( 'b' , ( ) => {
50+ expect ( CUSTOM_CODEQL_PATH_SETTING . getValue ( ) ) . to . be . equal ( process . env . CLI_PATH ) ;
51+ } ) ;
52+
53+ it ( 'c' , async ( ) => {
54+ expect ( getRemoteControllerRepo ( ) ) . to . be . undefined ;
55+ await setRemoteRepositoryLists ( { 'foo' : [ 'bar' ] } ) ;
56+ } ) ;
57+
58+ it ( 'd' , async ( ) => {
59+ expect ( getRemoteRepositoryLists ( ) ) . to . be . undefined ;
60+ await setRemoteControllerRepo ( 'foo' ) ;
61+ } ) ;
62+
4363 it ( 'should call the GitHub Actions API with the correct gist title' , async function ( ) {
4464 mockCreateGist = sinon . stub ( actionsApiClient , 'createGist' ) ;
4565
0 commit comments