Skip to content

Commit a5e1b0e

Browse files
committed
testing(check-examples): add positive test for paddedIndent option
1 parent 5587e02 commit a5e1b0e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

test/rules/assertions/checkExamples.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,5 +851,22 @@ export default {
851851
eslintrcForExamples: false,
852852
}],
853853
},
854+
{
855+
code: `
856+
/**
857+
* @example const ident = 5;
858+
* quux2();
859+
* bar();
860+
*/
861+
function quux2 () {
862+
863+
}
864+
`,
865+
options: [
866+
{
867+
paddedIndent: 2,
868+
},
869+
],
870+
},
854871
],
855872
};

0 commit comments

Comments
 (0)