Skip to content

Latest commit

 

History

History
17 lines (9 loc) · 908 Bytes

File metadata and controls

17 lines (9 loc) · 908 Bytes

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