Skip to content

Commit

Permalink
tests: add comments to identify the failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
AdriAt360 committed Jun 3, 2022
1 parent 16324aa commit d3fa030
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/src/rules/no-restricted-paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ ruleTester.run('no-restricted-paths', rule, {

invalid: [
test({
code: 'import b from "../server/b.js"',
code: 'import b from "../server/b.js"; // 1',
filename: testFilePath('./restricted-paths/client/a.js'),
options: [
{
Expand All @@ -277,7 +277,7 @@ ruleTester.run('no-restricted-paths', rule, {
],
}),
test({
code: 'import b from "../server/b.js"',
code: 'import b from "../server/b.js"; // 2',
filename: testFilePath('./restricted-paths/client/a.js'),
options: [
{
Expand Down Expand Up @@ -328,7 +328,7 @@ ruleTester.run('no-restricted-paths', rule, {
],
}),
test({
code: 'import b from "../server/b.js"',
code: 'import b from "../server/b.js"; // 3',
filename: testFilePath('./restricted-paths/client/a.js'),
options: [
{
Expand Down Expand Up @@ -485,7 +485,7 @@ ruleTester.run('no-restricted-paths', rule, {
// support of arrays for from and target
// array with single element
test({
code: 'import b from "../server/b.js"',
code: 'import b from "../server/b.js"; // 4',
filename: testFilePath('./restricted-paths/client/a.js'),
options: [
{
Expand All @@ -506,7 +506,7 @@ ruleTester.run('no-restricted-paths', rule, {
],
}),
test({
code: 'import b from "../server/b.js"',
code: 'import b from "../server/b.js"; // 5',
filename: testFilePath('./restricted-paths/client/a.js'),
options: [
{
Expand All @@ -528,7 +528,7 @@ ruleTester.run('no-restricted-paths', rule, {
}),
// array with multiple elements
test({
code: 'import b from "../server/b.js"',
code: 'import b from "../server/b.js"; // 6',
filename: testFilePath('./restricted-paths/client/a.js'),
options: [
{
Expand Down Expand Up @@ -603,7 +603,7 @@ ruleTester.run('no-restricted-paths', rule, {
}),
// array with mix of glob and non glob patterns in target
test({
code: 'import b from "../server/b.js"',
code: 'import b from "../server/b.js"; // 7',
filename: testFilePath('./restricted-paths/client/a.js'),
options: [
{
Expand Down

0 comments on commit d3fa030

Please sign in to comment.