@@ -2,9 +2,9 @@ import { join } from "path";
22import { dirSync } from "tmp-promise" ;
33import type { DirResult } from "tmp" ;
44import { writeFile } from "fs-extra" ;
5- import { getQlPackPath } from "../../../src/common/ql" ;
5+ import { getQlPackFilePath } from "../../../src/common/ql" ;
66
7- describe ( "getQlPackPath " , ( ) => {
7+ describe ( "getQlPackFilePath " , ( ) => {
88 let tmpDir : DirResult ;
99
1010 beforeEach ( ( ) => {
@@ -22,27 +22,27 @@ describe("getQlPackPath", () => {
2222 it ( "should find a qlpack.yml when it exists" , async ( ) => {
2323 await writeFile ( join ( tmpDir . name , "qlpack.yml" ) , "name: test" ) ;
2424
25- const result = await getQlPackPath ( tmpDir . name ) ;
25+ const result = await getQlPackFilePath ( tmpDir . name ) ;
2626 expect ( result ) . toEqual ( join ( tmpDir . name , "qlpack.yml" ) ) ;
2727 } ) ;
2828
2929 it ( "should find a codeql-pack.yml when it exists" , async ( ) => {
3030 await writeFile ( join ( tmpDir . name , "codeql-pack.yml" ) , "name: test" ) ;
3131
32- const result = await getQlPackPath ( tmpDir . name ) ;
32+ const result = await getQlPackFilePath ( tmpDir . name ) ;
3333 expect ( result ) . toEqual ( join ( tmpDir . name , "codeql-pack.yml" ) ) ;
3434 } ) ;
3535
3636 it ( "should find a qlpack.yml when both exist" , async ( ) => {
3737 await writeFile ( join ( tmpDir . name , "qlpack.yml" ) , "name: test" ) ;
3838 await writeFile ( join ( tmpDir . name , "codeql-pack.yml" ) , "name: test" ) ;
3939
40- const result = await getQlPackPath ( tmpDir . name ) ;
40+ const result = await getQlPackFilePath ( tmpDir . name ) ;
4141 expect ( result ) . toEqual ( join ( tmpDir . name , "qlpack.yml" ) ) ;
4242 } ) ;
4343
4444 it ( "should find nothing when it doesn't exist" , async ( ) => {
45- const result = await getQlPackPath ( tmpDir . name ) ;
45+ const result = await getQlPackFilePath ( tmpDir . name ) ;
4646 expect ( result ) . toEqual ( undefined ) ;
4747 } ) ;
4848} ) ;
0 commit comments