@@ -16,14 +16,14 @@ describe('Action Input operations for fetching all inputs, triggering validation
1616
1717 beforeEach ( ( ) => {
1818 stubbedInput = sinon . stub ( core , 'getInput' ) ;
19- sinon . stub ( InputValidator , 'validateUsername ' ) . returns ( 'validatedUsername' ) ;
19+ sinon . stub ( InputValidator , 'updateUsername ' ) . returns ( 'validatedUsername' ) ;
2020 sinon . stub ( InputValidator , 'validateBuildName' ) . returns ( 'validatedBuildName' ) ;
2121 sinon . stub ( InputValidator , 'validateProjectName' ) . returns ( 'validatedProjectName' ) ;
2222 } ) ;
2323
2424 afterEach ( ( ) => {
2525 core . getInput . restore ( ) ;
26- InputValidator . validateUsername . restore ( ) ;
26+ InputValidator . updateUsername . restore ( ) ;
2727 InputValidator . validateBuildName . restore ( ) ;
2828 InputValidator . validateProjectName . restore ( ) ;
2929 } ) ;
@@ -38,7 +38,7 @@ describe('Action Input operations for fetching all inputs, triggering validation
3838 sinon . assert . calledWith ( core . getInput , INPUT . ACCESS_KEY , { required : true } ) ;
3939 sinon . assert . calledWith ( core . getInput , INPUT . BUILD_NAME ) ;
4040 sinon . assert . calledWith ( core . getInput , INPUT . PROJECT_NAME ) ;
41- sinon . assert . calledWith ( InputValidator . validateUsername , 'someUsername' ) ;
41+ sinon . assert . calledWith ( InputValidator . updateUsername , 'someUsername' ) ;
4242 sinon . assert . calledWith ( InputValidator . validateBuildName , 'someBuildName' ) ;
4343 sinon . assert . calledWith ( InputValidator . validateProjectName , 'someProjectName' ) ;
4444 expect ( actionInput . username ) . to . eq ( 'validatedUsername' ) ;
@@ -54,7 +54,7 @@ describe('Action Input operations for fetching all inputs, triggering validation
5454 } catch ( e ) {
5555 expect ( e . message ) . to . eq ( 'Action input failed for reason: Username Required' ) ;
5656 }
57- sinon . assert . notCalled ( InputValidator . validateUsername ) ;
57+ sinon . assert . notCalled ( InputValidator . updateUsername ) ;
5858 sinon . assert . notCalled ( InputValidator . validateBuildName ) ;
5959 sinon . assert . notCalled ( InputValidator . validateProjectName ) ;
6060 } ) ;
@@ -67,7 +67,7 @@ describe('Action Input operations for fetching all inputs, triggering validation
6767 } catch ( e ) {
6868 expect ( e . message ) . to . eq ( 'Action input failed for reason: Access Key Required' ) ;
6969 }
70- sinon . assert . notCalled ( InputValidator . validateUsername ) ;
70+ sinon . assert . notCalled ( InputValidator . updateUsername ) ;
7171 sinon . assert . notCalled ( InputValidator . validateBuildName ) ;
7272 sinon . assert . notCalled ( InputValidator . validateProjectName ) ;
7373 } ) ;
0 commit comments