Added view.js tests