File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
modules/web-discovery-project/tests/integration Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,22 @@ export default function () {
104104 } ) ;
105105 } ) ;
106106
107+ describe ( "web-discovery-project.searchEngineUrl" , function ( ) {
108+ const testSearchEngineUrl = "https://google.com/search?q=apple+pie&sca_esv=3204631f57a9e94fc9b15156c2a60e5a&ei=6e19f02b9aade4603fe3bc81768743f6" ;
109+
110+ it ( `${ testPrivateUrl } is private` , function ( ) {
111+ WebDiscoveryProject . isAlreadyMarkedPrivate ( testPrivateUrl , ( e ) => {
112+ expect ( e . private ) . to . equal ( 1 ) ;
113+ } ) ;
114+ } ) ;
115+
116+ it ( `${ testSearchEngineUrl } is public` , function ( ) {
117+ WebDiscoveryProject . isAlreadyMarkedPrivate ( testSearchEngineUrl , ( e ) => {
118+ expect ( e . private ) . to . equal ( 0 ) ;
119+ } ) ;
120+ } ) ;
121+ } ) ;
122+
107123 describe ( "web-discovery-project.storage" , function ( ) {
108124 it ( "storage test" , function ( done ) {
109125 WebDiscoveryProject . db . saveRecordTelemetry ( "unit-test" , "test" , ( ) => {
You can’t perform that action at this time.
0 commit comments