Node.js based forum software built for the modern web
tests: topic.js: fixed description to mirror code, refactored asserts since mocha's 'done' can process errors in callback
Denis Wolf7c3fa30c1304
diff --git a/tests/topics.js b/tests/topics.jsindex 16bc92ee32..063451cc3e 100644--- a/tests/topics.js+++ b/tests/topics.js@@ -62,18 +62,14 @@ describe('Topic\'s', function() {});describe('.getTopicData', function() {- it('should get Topic data', function(done) {- Topics.getTopicData(newTopic.tid, function(err, result) {- done.apply(this.arguments);- });+ it('should not receive errors', function(done) {+ Topics.getTopicData(newTopic.tid, done);});});describe('.getTopicDataWithUser', function() {- it('should get Topic data with user info', function(done) {- Topics.getTopicDataWithUser(newTopic.tid, function(err, result) {- done.apply(this.arguments);- });+ it('should not receive errors', function(done) {+ Topics.getTopicDataWithUser(newTopic.tid, done);});});});