11import { join } from 'path' ;
22import {
3- parsePlanFileWithValidation ,
3+ parsePlanFile ,
44 resolveReference ,
55 ExtendedPlanFile
66} from '../src/parser/plan-parser' ;
@@ -11,7 +11,7 @@ describe('Plan Parser with Validation', () => {
1111 describe ( 'Valid plan files' , ( ) => {
1212 it ( 'should parse valid change names' , ( ) => {
1313 const planPath = join ( fixturesDir , 'plan-valid' , 'valid-change-names.plan' ) ;
14- const result = parsePlanFileWithValidation ( planPath ) ;
14+ const result = parsePlanFile ( planPath ) ;
1515
1616 expect ( result . errors ) . toHaveLength ( 0 ) ;
1717 expect ( result . plan ) . toBeDefined ( ) ;
@@ -38,7 +38,7 @@ describe('Plan Parser with Validation', () => {
3838
3939 it ( 'should parse valid tag names' , ( ) => {
4040 const planPath = join ( fixturesDir , 'plan-valid' , 'valid-tag-names.plan' ) ;
41- const result = parsePlanFileWithValidation ( planPath ) ;
41+ const result = parsePlanFile ( planPath ) ;
4242
4343 expect ( result . errors ) . toHaveLength ( 0 ) ;
4444 expect ( result . plan ) . toBeDefined ( ) ;
@@ -69,7 +69,7 @@ describe('Plan Parser with Validation', () => {
6969
7070 it ( 'should parse symbolic references' , ( ) => {
7171 const planPath = join ( fixturesDir , 'plan-valid' , 'symbolic-head-root.plan' ) ;
72- const result = parsePlanFileWithValidation ( planPath ) ;
72+ const result = parsePlanFile ( planPath ) ;
7373
7474 expect ( result . errors ) . toHaveLength ( 0 ) ;
7575 expect ( result . plan ) . toBeDefined ( ) ;
@@ -87,7 +87,7 @@ describe('Plan Parser with Validation', () => {
8787
8888 it ( 'should parse relative references' , ( ) => {
8989 const planPath = join ( fixturesDir , 'plan-valid' , 'relative-head-root.plan' ) ;
90- const result = parsePlanFileWithValidation ( planPath ) ;
90+ const result = parsePlanFile ( planPath ) ;
9191
9292 expect ( result . errors ) . toHaveLength ( 0 ) ;
9393 expect ( result . plan ) . toBeDefined ( ) ;
@@ -114,7 +114,7 @@ describe('Plan Parser with Validation', () => {
114114
115115 it ( 'should parse SHA1 references' , ( ) => {
116116 const planPath = join ( fixturesDir , 'plan-valid' , 'sha1-refs.plan' ) ;
117- const result = parsePlanFileWithValidation ( planPath ) ;
117+ const result = parsePlanFile ( planPath ) ;
118118
119119 expect ( result . errors ) . toHaveLength ( 0 ) ;
120120 expect ( result . plan ) . toBeDefined ( ) ;
@@ -132,7 +132,7 @@ describe('Plan Parser with Validation', () => {
132132 describe ( 'Invalid plan files' , ( ) => {
133133 it ( 'should report errors for invalid change names' , ( ) => {
134134 const planPath = join ( fixturesDir , 'plan-invalid' , 'invalid-change-names.plan' ) ;
135- const result = parsePlanFileWithValidation ( planPath ) ;
135+ const result = parsePlanFile ( planPath ) ;
136136
137137 expect ( result . errors . length ) . toBeGreaterThan ( 0 ) ;
138138
@@ -146,7 +146,7 @@ describe('Plan Parser with Validation', () => {
146146
147147 it ( 'should report errors for invalid tag names' , ( ) => {
148148 const planPath = join ( fixturesDir , 'plan-invalid' , 'invalid-tag-names.plan' ) ;
149- const result = parsePlanFileWithValidation ( planPath ) ;
149+ const result = parsePlanFile ( planPath ) ;
150150
151151 expect ( result . errors . length ) . toBeGreaterThan ( 0 ) ;
152152
@@ -158,7 +158,7 @@ describe('Plan Parser with Validation', () => {
158158
159159 it ( 'should report errors for bad symbolic references' , ( ) => {
160160 const planPath = join ( fixturesDir , 'plan-invalid' , 'bad-symbolic-refs.plan' ) ;
161- const result = parsePlanFileWithValidation ( planPath ) ;
161+ const result = parsePlanFile ( planPath ) ;
162162
163163 expect ( result . errors . length ) . toBeGreaterThan ( 0 ) ;
164164
0 commit comments