Codice è difficile da testare quando si ha parti di codice che:
- ha variabili (stato) globali, Singletons
- metodi statici che forzano test su grandi parti di codice, che potenzialmente ha una connessione al database etc.
- troppi conditionals
| # Change YOUR_TOKEN to your prerender token and uncomment that line if you want to cache urls and view crawl stats | |
| # Change example.com (server_name and in the rewrite rule) to your website url | |
| # Change /path/to/your/root to the correct value | |
| server { | |
| listen 80; | |
| server_name example.com; | |
| root /path/to/your/root; | |
| index index.html; |
| *, *:before, *:after{ | |
| margin: 0; | |
| padding: 0; | |
| box-sizing:border-box; | |
| } | |
| .row{ | |
| width: 100%; | |
| overflow: hidden; | |
| } | |
| .row > *{ |