FIX: Broken test

This commit is contained in:
Robin Ward 2015-09-09 17:00:07 -04:00
parent ca8046c7c3
commit b34b3293a3

View file

@ -176,13 +176,13 @@ test('clearState', function() {
test('initial category when uncategorized is allowed', function() { test('initial category when uncategorized is allowed', function() {
Discourse.SiteSettings.allow_uncategorized_topics = true; Discourse.SiteSettings.allow_uncategorized_topics = true;
const composer = openComposer({action: 'createTopic', draftKey: 'asfd', draftSequence: 1}); const composer = openComposer({action: 'createTopic', draftKey: 'asfd', draftSequence: 1});
equal(composer.get('categoryId'),undefined,"Uncategorized by default"); ok(!composer.get('categoryId'), "Uncategorized by default");
}); });
test('initial category when uncategorized is not allowed', function() { test('initial category when uncategorized is not allowed', function() {
Discourse.SiteSettings.allow_uncategorized_topics = false; Discourse.SiteSettings.allow_uncategorized_topics = false;
const composer = openComposer({action: 'createTopic', draftKey: 'asfd', draftSequence: 1}); const composer = openComposer({action: 'createTopic', draftKey: 'asfd', draftSequence: 1});
ok(composer.get('categoryId') === undefined, "Uncategorized by default. Must choose a category."); ok(!composer.get('categoryId'), "Uncategorized by default. Must choose a category.");
}); });
test('showPreview', function() { test('showPreview', function() {