Skip to content

Instantly share code, notes, and snippets.

@th3james
Last active August 29, 2015 13:56
Show Gist options
  • Save th3james/8827198 to your computer and use it in GitHub Desktop.
Save th3james/8827198 to your computer and use it in GitHub Desktop.
View rendering test
suite('ReportView');
test("Renders a given report's title", function() {
var report, view;
report = {
title: "My Lovely Report"
};
view = new ReportView(report);
view.render();
assert.strictEqual(
view.$el.find(".title").text(),
report.title
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment