mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 03:53:43 +08:00
12 lines
385 B
JavaScript
12 lines
385 B
JavaScript
module("Discourse.Site");
|
|
|
|
test('instance', function(){
|
|
|
|
var site = Discourse.Site.instance();
|
|
|
|
present(site, "We have a current site singleton");
|
|
present(site.get('categories'), "The instance has a list of categories");
|
|
present(site.get('flagTypes'), "The instance has a list of flag types");
|
|
present(site.get('trustLevels'), "The instance has a list of trust levels");
|
|
|
|
}); |