Push on main #107
GitHub Actions / Test Results
succeeded
Dec 18, 2024 in 0s
All 152 tests pass, 7 skipped in 54s
Annotations
Check notice on line 0 in .github
github-actions / Test Results
7 skipped tests found
There are 7 skipped tests, see "Raw output" for the full list of skipped tests.
Raw output
utils getClickIdAndSearchStringFromLink If /123abc is passed in, 123abc should be returned"
utils getClickIdAndSearchStringFromLink If /c/123abc is passed in, 123abc should be returned"
utils getClickIdAndSearchStringFromLink If /c/123abc?key1=val1 is passed in, 123abc?key1=val1 should be returned"
utils getHostedDeepLinkData should find applink, twitter and branch hosted data on page
utils getHostedDeepLinkData should return OG tags
utils mergeMetadataFromInitToHostedMetadata merge hosted_deeplink_data and user-supplied metadata
utils mergeMetadataFromInitToHostedMetadata override previous hosted_deeplink_data keys via user-supplied metadata object
Check notice on line 0 in .github
github-actions / Test Results
159 tests found
There are 159 tests, see "Raw output" for the full list of tests.
Raw output
Branch - new addListener should fire listener added using addListener for an event
Branch - new getAPIUrl test method exists
Branch - new getAPIUrl test url
Branch - new referringLink test method exists
Branch - new setAPIUrl test method exists
Branch - new setDMAParamsForEEA should catch and log exception
Branch - new setDMAParamsForEEA should log warning if adPersonalizationConsent is not boolean
Branch - new setDMAParamsForEEA should log warning if eeaRegion is not boolean
Branch - new setDMAParamsForEEA should not store dma params inside branch_dma_data of storage if eeaRegion is not set
Branch - new setDMAParamsForEEA should not store dma params inside branch_dma_data of storage if eeaRegion is null
Branch - new setDMAParamsForEEA should store dma params inside branch_dma_data of storage
Branch - new setDMAParamsForEEA test method exists
Branch - new setRequestMetaData should delete metadata for a key when value is null
Branch - new setRequestMetaData should not modify metadata for an invalid key or undefined value
Branch - new setRequestMetaData should set metadata for a valid key and value
Branch - new setRequestMetaData test method exists
config api_endpoint api_endpoint should be defined
config api_endpoint api_endpoint value is correct
config app_service_endpoint app_service_endpoint should be defined
config app_service_endpoint app_service_endpoint value is correct
config link_service_endpoint link_service_endpoint should be defined
config link_service_endpoint link_service_endpoint value is correct
config version version should be defined
getRelativeHeightValueOrFalseFromBannerHeight should return false when bannerHeight is in pixel values
getRelativeHeightValueOrFalseFromBannerHeight should return the height value when bannerHeight is provided with percentage units - 100%
getRelativeHeightValueOrFalseFromBannerHeight should return the height value when bannerHeight is provided with percentage units - 5%
getRelativeHeightValueOrFalseFromBannerHeight should return the height value when bannerHeight is provided with percentage units - 99%
getRelativeHeightValueOrFalseFromBannerHeight should return the height value when bannerHeight is provided with viewHeight units - 100vh
getRelativeHeightValueOrFalseFromBannerHeight should return the height value when bannerHeight is provided with viewHeight units - 5vh
getRelativeHeightValueOrFalseFromBannerHeight should return the height value when bannerHeight is provided with viewHeight units - 99vh
task_queue should enqueue two functions, and call them in order
task_queue should queue a function and call it
utils Tests for utils.userPreferences.shouldBlockRequest() should allow raw links
utils Tests for utils.userPreferences.shouldBlockRequest() should return false with v1/open as url endpoint and valid request data provided
utils Tests for utils.userPreferences.shouldBlockRequest() should return true with v1/bogus as url endpoint
utils Tests for utils.userPreferences.shouldBlockRequest() should return true with v1/open as url endpoint and no request data provided
utils Tests for utils.userPreferences.shouldBlockRequest() should return true with v1/xyz as url endpoint and with bogus request data
utils addPropertyIfNotNullorEmpty should add property if value is not empty
utils addPropertyIfNotNullorEmpty should not add property if value is empty
utils addPropertyIfNotNullorEmpty should not add property if value is null
utils base64encode should encode a string
utils cleanLinkData should accept empty linkData
utils cleanLinkData should not stringify pre-stringified field "data"
utils cleanLinkData should stringify field "data" and add "source"
utils convertObjectValuesToString a complex object's values should be stringified
utils convertObjectValuesToString a simple object's values should be stringified
utils convertObjectValuesToString should return empty object
utils convertValueToString should stringify a boolean
utils convertValueToString should stringify a number
utils convertValueToString should stringify an array
utils convertValueToString should stringify an object
utils convertValueToString should stringify null
utils delay function calls synchronously for a negative delay argument
utils delay function calls synchronously for a non-numeric delay argument
utils delay function calls synchronously for a zero delay argument
utils delay function delays for any positive numeric argument
utils extractDeeplinkPath should return deeplink path for a url with implicit protocol
utils extractDeeplinkPath should return deeplink path for an https:// url
utils extractDeeplinkPath should return empty string if there is no deeplink path
utils extractMobileDeeplinkPath should return a deeplink path if "/" is prepended
utils extractMobileDeeplinkPath should return deeplink path if no protocol is given
utils extractMobileDeeplinkPath should return deeplink path mobile scheme url
utils extractMobileDeeplinkPath should return empty string if there is no deeplink path
utils getClickIdAndSearchStringFromLink If "" is passed in, "" should be returned"
utils getClickIdAndSearchStringFromLink If "http://example.com:3000/?test=test" is passed in, ?test=test should be returned"
utils getClickIdAndSearchStringFromLink If "http://example.com:3000/c/clickid/?search=test#hash" is passed in, clickid?search=test should be returned"
utils getClickIdAndSearchStringFromLink If "http://example.com:3000/c/clickid?search=test#hash" is passed in, clickid?search=test should be returned"
utils getClickIdAndSearchStringFromLink If "http://example.com:3000?test=test" is passed in, ?test=test should be returned"
utils getClickIdAndSearchStringFromLink If /123abc is passed in, 123abc should be returned"
utils getClickIdAndSearchStringFromLink If /c/123abc is passed in, 123abc should be returned"
utils getClickIdAndSearchStringFromLink If /c/123abc?key1=val1 is passed in, 123abc?key1=val1 should be returned"
utils getClickIdAndSearchStringFromLink If null is passed in, "" should be returned"
utils getClickIdAndSearchStringFromLink If undefined is passed in, "" should be returned"
utils getClickIdAndSearchStringFromLink If {} is passed in, "" should be returned"
utils getHostedDeepLinkData $ios_deeplink_path and $android_deeplink_path should be formed from hosted metadata
utils getHostedDeepLinkData $ios_deeplink_path and $android_deeplink_path should be formed from twitter tags
utils getHostedDeepLinkData $ios_deeplink_path and $android_deeplink_path should be formed from twitter tags. $deeplink_path should also be present
utils getHostedDeepLinkData $ios_deeplink_path should be formed from applinks tag and $android_deeplink_path from hosted metadata tag
utils getHostedDeepLinkData Original key:value pairs in params should be present
utils getHostedDeepLinkData should find applink, twitter and branch hosted data on page
utils getHostedDeepLinkData should return OG tags
utils getHostedDeepLinkData should return an object
utils getParamValue should return search param value
utils getParamValue should return undefined if not set
utils getPlatformByUserAgent should return "android" for Android chrome user agent
utils getPlatformByUserAgent should return "desktop" for linux chrome user agent
utils getPlatformByUserAgent should return "desktop" for macOS chrome user agent
utils getPlatformByUserAgent should return "desktop" for macOS safari user agent
utils getPlatformByUserAgent should return "desktop" for windows chrome user agent
utils getPlatformByUserAgent should return "desktop" for windows edge user agent
utils getPlatformByUserAgent should return "ios" for ios chrome user agent
utils getPlatformByUserAgent should return "ios" for ios safari user agent
utils getPlatformByUserAgent should return "ipad" for iOS ipad safari user agent
utils hashValue should return hash param value
utils hashValue should return undefined if not set
utils isIOSWKWebView function should return false for Chrome
utils isIOSWKWebView function should return false for Edge
utils isIOSWKWebView function should return false for Firefox
utils isIOSWKWebView function should return false for Opera
utils isIOSWKWebView function should return false for Yandex
utils isIOSWKWebView function should return false when UA is iOS but window.webkitURL is not defined
utils isIOSWKWebView function should return false when UA is not iOS but window.webkitURL is defined
utils isIOSWKWebView function should return true when UA includes iPad & window.webkitURL is defined
utils isIOSWKWebView function should return true when UA includes iPhone & window.webkitURL is defined
utils isIOSWKWebView function should return true when UA includes iPod & window.webkitURL is defined
utils isSafari11OrGreater should return false for non safari browsers
utils isSafari11OrGreater should return true for safari 11 browsers
utils isValidUrl should return false for Invalid domain names
utils isValidUrl should return false for Invalid domain names 2
utils isValidUrl should return false for empty url
utils isValidUrl should return false for invalid path
utils isValidUrl should return false for invalid scheme htt
utils isValidUrl should return false for missing domain
utils isValidUrl should return false for missing domain after dot
utils isValidUrl should return false for missing domain before dot
utils isValidUrl should return false for missing scheme
utils isValidUrl should return false for null
utils isValidUrl should return false for undefined
utils isValidUrl should return true for valid url - http
utils isValidUrl should return true for valid url - https
utils isWebKitBrowser function returns false when window.webkitURL is not defined
utils isWebKitBrowser function returns true when window.webkitURL is defined
utils merge should handle an non-object for first argument
utils merge should handle an non-object for second argument
utils merge should merge two objects despite duplication
utils mergeMetadataFromInitToHostedMetadata ensure that additionalMetadata['hosted_deeplink_data'] does not get mutated
utils mergeMetadataFromInitToHostedMetadata ensure that userSuppliedMetadata does not get mutated
utils mergeMetadataFromInitToHostedMetadata merge hosted_deeplink_data and user-supplied metadata
utils mergeMetadataFromInitToHostedMetadata override previous hosted_deeplink_data keys via user-supplied metadata object
utils mergeMetadataFromInitToHostedMetadata tests with metadata and without hosted_deeplink_data
utils message should produce a Branch SDK already init message
utils message should produce a Branch SDK not init message
utils message should produce a call branch init first
utils message should produce a missing URL error
utils message should produce a missing app id
utils message should produce a missing identity error
utils message should produce a missing param message
utils message should produce a timeout message
utils message should produce an invalid param type message
utils removeTrailingDotZeros multi-dot : should return string with trailing dot zeros stripped
utils removeTrailingDotZeros no dot- should not strip trailing dot zero
utils removeTrailingDotZeros should not strip trailing dot zero
utils removeTrailingDotZeros should return empty if value is empty
utils removeTrailingDotZeros should return null if value is null
utils removeTrailingDotZeros single dot- should not strip trailing dot zero
utils removeTrailingDotZeros with dot and no zeros- should not strip trailing dot zero
utils separateEventAndCustomData extracted custom and event data should equal initial objects
utils separateEventAndCustomData should return true or false for a given parameter and type
utils separateEventAndCustomData utils.isStandardEvent() should return true for standard events and false for custom events
utils setDMAParams should add DMA parameters for valid endpoints: v1/open
utils setDMAParams should add DMA parameters for valid endpoints: v1/pageview
utils setDMAParams should add DMA parameters for valid endpoints: v2/event/custom
utils setDMAParams should add DMA parameters for valid endpoints: v2/event/standard
utils setDMAParams should not add DMA parameters for invalid endpoints: v1/dismiss
utils setDMAParams should not add DMA parameters for invalid endpoints: v1/invalid
utils shouldAddDMAParams should return false for invalid endpoints
utils shouldAddDMAParams should return true for valid endpoints
utils whiteListSessionData should make missing params null
utils whiteListSessionData should remove unwanted params
Loading