File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " abcoder-ts-parser" ,
3- "version" : " 0.0.6 " ,
3+ "version" : " 0.0.8 " ,
44 "description" : " TypeScript AST parser for UNIAST v0.1.3 specification" ,
55 "main" : " dist/index.js" ,
66 "types" : " dist/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -394,35 +394,6 @@ describe('SymbolResolver', () => {
394394 } ) ;
395395 } ) ;
396396
397- describe ( 'clearCache' , ( ) => {
398- it ( 'should clear the resolution cache' , ( ) => {
399- const { project : testProject , sourceFile, cleanup } = createTestProject ( `
400- const test = 42;
401- ` ) ;
402-
403- try {
404- const variableDeclaration = sourceFile . getVariableDeclaration ( 'test' ) ;
405- const symbol = variableDeclaration ?. getSymbol ( ) ;
406-
407- if ( symbol ) {
408- // First resolution
409- const [ resolved1 , _ ] = symbolResolver . resolveSymbol ( symbol ! , variableDeclaration ! ) ;
410- expect ( resolved1 ) . toBeDefined ( ) ;
411-
412- // Clear cache
413- symbolResolver . clearCache ( ) ;
414-
415- // Second resolution should work the same
416- const [ resolved2 , __ ] = symbolResolver . resolveSymbol ( symbol ! , variableDeclaration ! ) ;
417- expect ( resolved2 ) . toBeDefined ( ) ;
418- expect ( resolved2 ?. name ) . toBe ( resolved1 ?. name ) ;
419- }
420- } finally {
421- cleanup ( ) ;
422- }
423- } ) ;
424- } ) ;
425-
426397 describe ( 'assignSymbolName' , ( ) => {
427398 it ( 'should handle simple variable names' , ( ) => {
428399 const { project : testProject , sourceFile, cleanup } = createTestProject ( `
You can’t perform that action at this time.
0 commit comments