Register services before embedder render spec
This commit is contained in:
parent
8fa19f7a34
commit
9731871ca9
1 changed files with 4 additions and 1 deletions
|
|
@ -18,6 +18,9 @@ describe("Diaspora", function() {
|
|||
});
|
||||
});
|
||||
describe("render", function() {
|
||||
beforeEach(function(){
|
||||
Diaspora.widgets.embedder.registerServices();
|
||||
});
|
||||
it("renders the specified mustache template", function() {
|
||||
var template = Diaspora.widgets.embedder.render("youtube.com", {"video-id": "asdf"});
|
||||
expect(template.length > 0).toBeTruthy();
|
||||
|
|
@ -52,7 +55,7 @@ describe("Diaspora", function() {
|
|||
|
||||
var $post = $("#main_stream").children(".stream_element:first"),
|
||||
$contentParagraph = $post.children(".sm_body").children('.content').children("p");
|
||||
|
||||
|
||||
expect($contentParagraph.length).toEqual(1);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue