Snapshot with test code in main.js and index.html