Update view-spec.js to allow tests to run