Cscott has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/147376

Change subject: Use promise support in mocha.
......................................................................

Use promise support in mocha.

Change-Id: I588f591a9d20cb61fd90b4e5c0d56944973747b7
---
M test/samples.js
1 file changed, 2 insertions(+), 5 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Collection/OfflineContentGenerator/latex_renderer
 refs/changes/76/147376/1

diff --git a/test/samples.js b/test/samples.js
index 0364015..95b1291 100644
--- a/test/samples.js
+++ b/test/samples.js
@@ -31,7 +31,7 @@
        ['tao.zip', 'hurricanes.zip', 'malayalam.zip', 'multiwiki.zip', 
'papier.zip', 'us.zip', 'jabug.zip'].forEach(function(bundle) {
                describe(bundle, function() {
                        var dest = hasXeLaTeX ? 'pdf' : 'tex';
-                       it('should compile to '+dest, function(done) {
+                       it('should compile to '+dest, function() {
                                this.timeout(0);
                                var filename = path.join(__dirname, '..', 
'samples', bundle);
                                return latexer.convert({
@@ -46,10 +46,7 @@
                                        try {
                                                fs.unlinkSync(filename + '.' + 
dest);
                                        } catch (e) { }
-                               }).done(
-                                       function() { done(); },
-                                       function(err) { done(err); }
-                               );
+                               });
                        });
                });
        });

-- 
To view, visit https://gerrit.wikimedia.org/r/147376
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I588f591a9d20cb61fd90b4e5c0d56944973747b7
Gerrit-PatchSet: 1
Gerrit-Project: 
mediawiki/extensions/Collection/OfflineContentGenerator/latex_renderer
Gerrit-Branch: master
Gerrit-Owner: Cscott <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to