Skip to content

Latest commit

 

History

History

stubbing-spying__window

Folders and files

README.md

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