@@ -16,14 +16,14 @@ describe('Action Input operations for fetching all inputs, triggering validation
16
16
17
17
beforeEach ( ( ) => {
18
18
stubbedInput = sinon . stub ( core , 'getInput' ) ;
19
- sinon . stub ( InputValidator , 'validateUsername ' ) . returns ( 'validatedUsername' ) ;
19
+ sinon . stub ( InputValidator , 'updateUsername ' ) . returns ( 'validatedUsername' ) ;
20
20
sinon . stub ( InputValidator , 'validateBuildName' ) . returns ( 'validatedBuildName' ) ;
21
21
sinon . stub ( InputValidator , 'validateProjectName' ) . returns ( 'validatedProjectName' ) ;
22
22
} ) ;
23
23
24
24
afterEach ( ( ) => {
25
25
core . getInput . restore ( ) ;
26
- InputValidator . validateUsername . restore ( ) ;
26
+ InputValidator . updateUsername . restore ( ) ;
27
27
InputValidator . validateBuildName . restore ( ) ;
28
28
InputValidator . validateProjectName . restore ( ) ;
29
29
} ) ;
@@ -38,7 +38,7 @@ describe('Action Input operations for fetching all inputs, triggering validation
38
38
sinon . assert . calledWith ( core . getInput , INPUT . ACCESS_KEY , { required : true } ) ;
39
39
sinon . assert . calledWith ( core . getInput , INPUT . BUILD_NAME ) ;
40
40
sinon . assert . calledWith ( core . getInput , INPUT . PROJECT_NAME ) ;
41
- sinon . assert . calledWith ( InputValidator . validateUsername , 'someUsername' ) ;
41
+ sinon . assert . calledWith ( InputValidator . updateUsername , 'someUsername' ) ;
42
42
sinon . assert . calledWith ( InputValidator . validateBuildName , 'someBuildName' ) ;
43
43
sinon . assert . calledWith ( InputValidator . validateProjectName , 'someProjectName' ) ;
44
44
expect ( actionInput . username ) . to . eq ( 'validatedUsername' ) ;
@@ -54,7 +54,7 @@ describe('Action Input operations for fetching all inputs, triggering validation
54
54
} catch ( e ) {
55
55
expect ( e . message ) . to . eq ( 'Action input failed for reason: Username Required' ) ;
56
56
}
57
- sinon . assert . notCalled ( InputValidator . validateUsername ) ;
57
+ sinon . assert . notCalled ( InputValidator . updateUsername ) ;
58
58
sinon . assert . notCalled ( InputValidator . validateBuildName ) ;
59
59
sinon . assert . notCalled ( InputValidator . validateProjectName ) ;
60
60
} ) ;
@@ -67,7 +67,7 @@ describe('Action Input operations for fetching all inputs, triggering validation
67
67
} catch ( e ) {
68
68
expect ( e . message ) . to . eq ( 'Action input failed for reason: Access Key Required' ) ;
69
69
}
70
- sinon . assert . notCalled ( InputValidator . validateUsername ) ;
70
+ sinon . assert . notCalled ( InputValidator . updateUsername ) ;
71
71
sinon . assert . notCalled ( InputValidator . validateBuildName ) ;
72
72
sinon . assert . notCalled ( InputValidator . validateProjectName ) ;
73
73
} ) ;
0 commit comments