discourse/test/javascripts/integration/list_topics_test.js
2013-06-13 15:08:42 -04:00

24 lines
464 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() {
expect(2);
visit("/").then(function() {
ok(exists("#topic-list"), "The list of topics was rendered");
ok(count('#topic-list .topic-list-item') > 0, "has topics");
});
});