mirror of
https://github.com/diaspora/diaspora.git
synced 2026-04-29 03:01:03 -04:00
11 lines
315 B
JavaScript
11 lines
315 B
JavaScript
describe("app.collections.comments", function(){
|
|
describe("url", function(){
|
|
it("should user the post id", function(){
|
|
var post =new app.models.Post({id : 5})
|
|
var collection = new app.collections.Comments([], {post : post})
|
|
expect(collection.url()).toBe("/posts/5/comments")
|
|
})
|
|
})
|
|
})
|
|
|