Refactor swift-simulator
mgeisler opened this issue · comments
Move the fixed and reusable parts of swift-simulator.js
out into a separate JS file. This file is then injected into the page when testing. This will give us two things:
- we can define reusable functions in this file and each
browser.addMockModule
call can rely on these utility functions - the
browser.addMockModule
calls will become smaller and less indented, hopefully lowering the overall complexity