Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Aug 28, 2023
1 parent 37f9e82 commit 7be1367
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/test/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {
readFileSync,
writeFileSync,
} from 'fs';
import {fileURLToPath} from 'url';
} from 'node:fs';
import {fileURLToPath} from 'node:url';
import {
dirname,
join,
} from 'path';
} from 'node:path';
import {extend} from 'supertape';
import {print} from 'putout';
import tryCatch from 'try-catch';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ const test = createTest(import.meta.url, {

test('rules: convert-t-compile-to-compile: report', (t) => {
t.report('convert-t-compile-to-compile', `Use 'compile()' instead of 't.compile()'`);
t.end();
});

test('rules: convert-t-compile-to-compile: transform', (t) => {
t.transform('convert-t-compile-to-compile');
t.end();
});

test('rules: convert-t-compile-to-compile: no report: done', (t) => {
t.noReport('done');
t.end();
});
2 changes: 2 additions & 0 deletions rules/goldstein/lib/convert-t-raise-to-raise/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ const test = createTest(import.meta.url, {

test('rules: convert-t-raise-to-raise: report', (t) => {
t.report('convert-t-raise-to-raise', `Use 'raise()' instead of 't.raise()'`);
t.end();
});

test('rules: convert-t-raise-to-raise: transform', (t) => {
t.transform('convert-t-raise-to-raise');
t.end();
});
2 changes: 2 additions & 0 deletions rules/goldstein/test/goldstein.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ const test = createTest(import.meta.url, {

test('plugin-goldstein: transform: convert-t-compile-to-compile', (t) => {
t.transform('convert-t-compile-to-compile');
t.end();
});

test('plugin-goldstein: transform: convert-t-raise-to-raise', (t) => {
t.transform('convert-t-raise-to-raise');
t.end();
});

0 comments on commit 7be1367

Please sign in to comment.