mgeisler / swift-browser

AngularJS interface for OpenStack Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  1. we can define reusable functions in this file and each browser.addMockModule call can rely on these utility functions
  2. the browser.addMockModule calls will become smaller and less indented, hopefully lowering the overall complexity