Skip to content

Latest commit

 

History

History

stubbing-spying__window

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Stubbing Window

This is an example showing how to stub window and console calls.

The application

The application index.html has a single button that executes window.open on click. The application also prints "hello" to the console as soon as it loads.

The tests

Window open stub

Spy on console.log