cleanup alert spec
This commit is contained in:
parent
7b1d7b8ac9
commit
33772a27d9
1 changed files with 6 additions and 1 deletions
|
|
@ -5,6 +5,11 @@ describe("Diaspora.Alert", function() {
|
|||
$(document).trigger("close.facebox");
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
$(".diaspora_alert").empty();
|
||||
});
|
||||
|
||||
|
||||
describe("on widget ready", function() {
|
||||
it("should remove #diaspora_alert on close.facebox", function() {
|
||||
Diaspora.Alert.show("YEAH", "YEAHH");
|
||||
|
|
@ -13,7 +18,7 @@ describe("Diaspora.Alert", function() {
|
|||
expect($("#diaspora_alert").length).toEqual(0);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
describe("alert", function() {
|
||||
it("should render a mustache template and append it the body", function() {
|
||||
Diaspora.Alert.show("YO", "YEAH");
|
||||
|
|
|
|||
Loading…
Reference in a new issue