Skip to content

Instantly share code, notes, and snippets.

describe("Page Behaviors", function () {
beforeEach(function() {
spyOn(window, "alert").andCallFake(function() {
});
});
describe("given a page behavior", function () {
beforeEach(function() {
BehaviorMap['.foo'] = function() {
alert("The Pentagon!");