'use strict'; var common = require('../common'); describe('DiscussionViewer', function () { describe('handleNotification, addComment, finishDiscussion, prepareNewDiscussion, getReplyMessage, getReplyNickname, getReplyCommentId & highlightComment', function () { this.timeout(30000); before(function () { cleanup(); }); jsc.property( 'displays & hides comments as requested', jsc.array( jsc.record({ id: jsc.nearray(common.jscAlnumString()), parentid: jsc.nearray(common.jscAlnumString()), data: jsc.string, meta: jsc.record({ nickname: jsc.string, postdate: jsc.nat, vizhash: jsc.string }) }) ), function (comments) { var clean = jsdom(), results = []; $('body').html( '
' + '' + '