They all knew they were coming. She knew the outcome. Why would she believe that they could even take Jericho? No one else could. The Israelites didn't even possess the requisite armaments to take the city apart from God's intervention. How did she know God would intervene?