@@ -65,53 +65,3 @@ describe('validAddRepoSiteForm', () => {
65
65
expect ( expected . repoOrganizationId ) . to . equal ( 'Please select an organization' ) ;
66
66
} ) ;
67
67
} ) ;
68
-
69
- describe ( 'validBasicAuthUsername' , ( ) => {
70
- it ( 'accepts valid username' , ( ) => {
71
- expect ( validators . validBasicAuthUsername ( 'username1' ) ) . to . be . undefined ;
72
- } ) ;
73
-
74
- it ( 'accepts valid username with symbols that arenot semicolons' , ( ) => {
75
- expect ( validators . validBasicAuthUsername ( 'username1!@#$%^&*()-_+=<>?,./~`{}[]|\\' ) ) . to
76
- . be . undefined ;
77
- } ) ;
78
-
79
- it ( 'must contain at least 1 alphanumeric char' , ( ) => {
80
- expect ( validators . validBasicAuthUsername ( '****' ) ) . to . not . be . undefined ;
81
- } ) ;
82
-
83
- it ( 'must be 4 characters' , ( ) => {
84
- expect ( validators . validBasicAuthUsername ( 'use' ) ) . to . not . be . undefined ;
85
- } ) ;
86
-
87
- it ( 'colons are not allowed in username' , ( ) => {
88
- expect ( validators . validBasicAuthUsername ( 'user:name1' ) ) . to . not . be . undefined ;
89
- } ) ;
90
- } ) ;
91
-
92
- describe ( 'validBasicAuthPassword' , ( ) => {
93
- it ( 'at least 1 uppercase, 1 lowercase and one number required' , ( ) => {
94
- expect ( validators . validBasicAuthPassword ( 'paSsw0rd' ) ) . to . be . undefined ;
95
- } ) ;
96
-
97
- it ( 'at least 1 uppercase, 1 lowercase and one number required w/ symbols' , ( ) => {
98
- expect ( validators . validBasicAuthPassword ( 'paSsw0rd!@#$%^&*()-_+=<>?,./~`{}[]|\\' ) ) . to
99
- . be . undefined ;
100
- } ) ;
101
-
102
- it ( 'at least 1 uppercase char required' , ( ) => {
103
- expect ( validators . validBasicAuthPassword ( 'passw0rd' ) ) . to . not . be . undefined ;
104
- } ) ;
105
-
106
- it ( 'at leaset 1 lowercase char required' , ( ) => {
107
- expect ( validators . validBasicAuthPassword ( 'PASSW0RD' ) ) . to . not . be . undefined ;
108
- } ) ;
109
-
110
- it ( 'at least one number required' , ( ) => {
111
- expect ( validators . validBasicAuthPassword ( 'paSsword' ) ) . to . not . be . undefined ;
112
- } ) ;
113
-
114
- it ( 'must be 4 characters' , ( ) => {
115
- expect ( validators . validBasicAuthPassword ( 'Pa5' ) ) . to . not . be . undefined ;
116
- } ) ;
117
- } ) ;
0 commit comments