github.com/projectdiscovery/nuclei/v2@v2.9.15/pkg/protocols/common/automaticscan/automaticscan_test.go (about) 1 package automaticscan 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/require" 7 ) 8 9 func TestNormalizeAppName(t *testing.T) { 10 appName := normalizeAppName("JBoss") 11 require.Equal(t, "jboss", appName, "could not get normalized name") 12 13 appName = normalizeAppName("JBoss:2.3.5") 14 require.Equal(t, "jboss", appName, "could not get normalized name") 15 }