mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 01:24:14 +08:00
25 lines
434 B
JavaScript
25 lines
434 B
JavaScript
/*global module:true test:true ok:true visit:true expect:true exists:true count:true */
|
|
|
|
module("Header", {
|
|
|
|
setup: function() {
|
|
Ember.run(Discourse, Discourse.advanceReadiness);
|
|
},
|
|
|
|
teardown: function() {
|
|
Discourse.reset();
|
|
}
|
|
});
|
|
|
|
test("/", function() {
|
|
expect(2);
|
|
|
|
visit("/").then(function() {
|
|
ok(exists("header"), "The header was rendered");
|
|
ok(exists("#site-logo"), "The logo was shown");
|
|
});
|
|
|
|
});
|
|
|
|
|