Skip to content

Commit 9433ec6

Browse files
committed
test: Remove unnecessary callbacks from tests
1 parent c3cdaea commit 9433ec6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

__tests__/test.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ test('bad input', function() {
7171
glob
7272
.sync(path.join(__dirname, 'fixture/bad', '*.input.js'))
7373
.forEach(function(file) {
74-
test(path.basename(file), function(t) {
74+
test(path.basename(file), function() {
7575
return documentation
7676
.build([file], readOptionsFromFile(file))
7777
.then(res => {
@@ -93,7 +93,7 @@ describe('html', function() {
9393
glob
9494
.sync(path.join(__dirname, 'fixture/html', '*.input.js'))
9595
.forEach(function(file) {
96-
test(path.basename(file), async function(t) {
96+
test(path.basename(file), async function() {
9797
const result = await documentation.build(
9898
[file],
9999
readOptionsFromFile(file)
@@ -113,33 +113,33 @@ describe('outputs', function() {
113113
glob
114114
.sync(path.join(__dirname, 'fixture', '*.input.js'))
115115
.forEach(function(file) {
116-
test(path.basename(file), async function(tt) {
116+
test(path.basename(file), async function() {
117117
const result = await documentation.build(
118118
[file],
119119
readOptionsFromFile(file)
120120
);
121-
test('markdown', async function(t) {
121+
test('markdown', async function() {
122122
const md = await outputMarkdown(_.cloneDeep(result), {
123123
markdownToc: true
124124
});
125125
expect(result.toString()).toMatchSnapshot();
126126
});
127127

128128
if (file.match(/es6.input.js/)) {
129-
test('no markdown TOC', async function(t) {
129+
test('no markdown TOC', async function() {
130130
const txt = await outputMarkdown(_.cloneDeep(result), {
131131
markdownToc: false
132132
});
133133
expect(result.toString()).toMatchSnapshot();
134134
});
135135
}
136136

137-
test('markdown AST', async function(t) {
137+
test('markdown AST', async function() {
138138
const ast = await outputMarkdownAST(_.cloneDeep(result), {});
139139
expect(ast).toMatchSnapshot();
140140
});
141141

142-
test('JSON', function(t) {
142+
test('JSON', function() {
143143
normalize(result);
144144
result.forEach(function(comment) {
145145
validate(

0 commit comments

Comments
 (0)