File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ describe('Test whiteliste check', () => {
99} )
1010
1111describe ( 'Test blacklist check' , ( ) => {
12+ test ( 'example GooGle.com url is not blacklisted' , ( ) => {
13+ const url = 'https://www.GooGle.com'
14+ expect ( validation . isBlacklisted ( url ) ) . toBe ( false )
15+ } )
16+
1217 test ( 'localstack url is not blacklisted' , ( ) => {
1318 const url = 'http://localhost:4566'
1419 expect ( validation . isBlacklisted ( url ) ) . toBe ( false )
@@ -18,6 +23,11 @@ describe('Test blacklist check', () => {
1823 const url = 'https://bit.ly/abc'
1924 expect ( validation . isBlacklisted ( url ) ) . toBe ( true )
2025 } )
26+
27+ test ( 'example Bit.Ly url is also blacklisted' , ( ) => {
28+ const url = 'https://Bit.Ly/abc'
29+ expect ( validation . isBlacklisted ( url ) ) . toBe ( true )
30+ } )
2131} )
2232
2333describe ( 'Test https check' , ( ) => {
You can’t perform that action at this time.
0 commit comments