mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
22 lines
451 B
JavaScript
22 lines
451 B
JavaScript
/*global module:true test:true ok:true visit:true expect:true exists:true count:true */
|
|
|
|
module("List Topics", {
|
|
setup: function() {
|
|
Ember.run(Discourse, Discourse.advanceReadiness);
|
|
},
|
|
|
|
teardown: function() {
|
|
Discourse.reset();
|
|
}
|
|
});
|
|
|
|
test("/", function() {
|
|
|
|
visit("/").then(function() {
|
|
ok(exists("#topic-list"), "The list of topics was rendered");
|
|
ok(count('#topic-list .topic-list-item') > 0, "has topics");
|
|
});
|
|
|
|
});
|
|
|
|
|