Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Sembra buono, ma la documentazione e' chiaramente scritta dagli sviluppatori che hanno chiaramente una conoscenza avanzata della libreria. Cioe': "A test spy is a function that records arguments, return value, the value of this and exception thrown (if any) for all its calls. A test spy can be an anonymous function or it can wrap an existing function.". Non ho ancora capito. Leggo di piu': "Test spies are useful to test both callbacks and how certain functions/methods are used throughout the system under test. ". Eh? Cioe', alla fine con un po' di pazienza si riesce a capire, ma bisogna prestare buona attenzione (e leggere tutto tre volte).
Aggiungi un commento