Skip to content

Commit 76b3135

Browse files
committed
Rebase and use options pragma in test file
1 parent 7f9813a commit 76b3135

8 files changed

+879
-663
lines changed

test/bin.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,14 +340,14 @@ test('fatal error', options, function (t) {
340340
t.ok(err.toString().match(/Unexpected token/), 'reports syntax error');
341341
t.end();
342342
}, false);
343-
}, options);
343+
});
344344

345345
test('build --document-exported', function (t) {
346346

347347
documentation(['build fixture/document-exported.input.js --document-exported -f md'], {}, function (err, data) {
348348
t.error(err);
349349

350-
var outputfile = path.join(__dirname, 'fixture', 'document-exported.output.enabled.md');
350+
var outputfile = path.join(__dirname, 'fixture', 'document-exported.output.md');
351351
if (process.env.UPDATE) {
352352
fs.writeFileSync(outputfile, data, 'utf8');
353353
}
@@ -356,4 +356,4 @@ test('build --document-exported', function (t) {
356356
t.equal(data, expect);
357357
t.end();
358358
}, false);
359-
});
359+
}, options);

test/fixture/document-exported.input.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Options: {"documentExported": true}
2+
13
export class Class {
24
classMethod() {}
35
get classGetter() {}

0 commit comments

Comments
 (0)