/* Copyright (c) 2010, Diaspora Inc. This file is * licensed under the Affero General Public License version 3 or later. See * the COPYRIGHT file. */ describe("View", function() { it("is the object that helps the UI", function() { expect(typeof View === "object").toBeTruthy(); }); describe("initialize", function() { it("is called on DOM ready", function() { spyOn(View, "initialize"); $(View.initialize); expect(View.initialize).toHaveBeenCalled(); }); }); describe("debug", function() { describe("click", function() { beforeEach(function() { jasmine.Clock.useMock(); $("#jasmine_content").html( '