Skip to content

Commit 1c1b61b

Browse files
feat(tests): Added another test for URL-like out-of-scope strings
related to #4
1 parent 252fb34 commit 1c1b61b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

main_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ func Test_parseOutOfScopes(t *testing.T) {
6262
assetURL, _ = url.Parse("https://zendesk.internal.example.com")
6363
outOfScopeString = "https://sometool.internal.example.com"
6464
value = parseOutOfScopes(assetURL, outOfScopeString, nil)
65+
equals(t, false, value)
66+
67+
// Simple test - out-of-scope URL with a URL-like out-of-scope string
68+
assetURL, _ = url.Parse("https://zendesk.internal.example.com")
69+
outOfScopeString = "https://zendesk.internal.example.com"
70+
value = parseOutOfScopes(assetURL, outOfScopeString, nil)
6571
equals(t, true, value)
6672

6773
// Test with a bad function invocation, providing both an assetURL and an assetIP

0 commit comments

Comments
 (0)