From b34b3293a3e20fb9f968aaa09992baa1e42ff4df Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 9 Sep 2015 17:00:07 -0400 Subject: [PATCH] FIX: Broken test --- test/javascripts/models/composer-test.js.es6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/javascripts/models/composer-test.js.es6 b/test/javascripts/models/composer-test.js.es6 index c9c2e1dc8..a31c569ca 100644 --- a/test/javascripts/models/composer-test.js.es6 +++ b/test/javascripts/models/composer-test.js.es6 @@ -176,13 +176,13 @@ test('clearState', function() { test('initial category when uncategorized is allowed', function() { Discourse.SiteSettings.allow_uncategorized_topics = true; 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() { Discourse.SiteSettings.allow_uncategorized_topics = false; 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() {