Skip to content

Commit c5288f6

Browse files
committed
fix tests
1 parent 42c62a4 commit c5288f6

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

es5/jsdoc-command.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
'use strict';
22

3-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
3+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
44

55
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
66

77
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
88

99
var arrayify = require('array-back');
1010
var path = require('path');
11-
var promiseFinally = require('promise.prototype.finally');
12-
promiseFinally.shim();
1311

1412
var JsdocCommand = function () {
1513
function JsdocCommand(options, cache) {
@@ -45,11 +43,11 @@ var JsdocCommand = function () {
4543
this.output = this.getOutput(err);
4644
if (this.output instanceof Promise) {
4745
return this.output.then(function (result) {
46+
_this.postExecute();
4847
return result;
4948
}).catch(function (err) {
49+
_this.postExecute();
5050
throw err;
51-
}).finally(function () {
52-
return _this.postExecute();
5351
});
5452
} else {
5553
this.postExecute();
@@ -108,7 +106,7 @@ var JsdocCommand = function () {
108106

109107
if (this.cache) {
110108
var _ret = function () {
111-
var fs = require('then-fs');
109+
var fs = require('fs-then-native');
112110
var promises = _this2.inputFileSet.files.map(function (file) {
113111
return fs.readFile(file, 'utf8');
114112
});

es5/jsdoc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var collectAll = require('collect-all');
1919
var TempFile = require('./temp-file');
2020
var FileSet = require('file-set');
2121
var homePath = require('home-path');
22-
var fs = require('then-fs');
22+
var fs = require('fs-then-native');
2323

2424
var CACHE_DIR = path.resolve(homePath(), '.jsdoc-api');
2525

test/caching.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var TestRunner = require('test-runner')
33
var jsdoc = require('../')
44
var Fixture = require('./lib/fixture')
55
var path = require('path')
6-
var fs = require('then-fs')
6+
var fs = require('fs-then-native')
77
var a = require('core-assert')
88

99
var runner = new TestRunner()

0 commit comments

Comments
 (0)