Skip to content

Commit

Permalink
chore: fix rules scripts (#3358)
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech authored Jul 3, 2024
1 parent 600df67 commit b17ff8b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions test/recheck.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { inline, block } from '../src/rules.js';
import { Lexer } from '../lib/marked.esm.js';
import { check } from 'recheck';

const { inline, block } = Lexer.rules;
function checkRegexp(obj, name) {
return Promise.all(Object.keys(obj).map(async(prop) => {
const item = obj[prop];
Expand All @@ -26,7 +27,7 @@ function checkRegexp(obj, name) {
}

console.log(`
import { marked } from './src/marked.js';
import { marked } from '../lib/marked.esm.js';
const start = Date.now();
`);
Expand Down
4 changes: 2 additions & 2 deletions test/rules.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { inline, block } from '../src/rules.js';
const rules = { inline, block };
import { Lexer } from '../lib/marked.esm.js';
const rules = Lexer.rules;

const COLOR = {
reset: '\x1b[0m',
Expand Down

0 comments on commit b17ff8b

Please sign in to comment.