Skip to content

Commit

Permalink
Merge branch 'mini' into browser
Browse files Browse the repository at this point in the history
  • Loading branch information
bhsd-harry committed Dec 22, 2024
2 parents 7102e66 + bf97aaa commit 4ff7830
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .mocharc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"nodeOption": "enable-source-maps",
"enable-source-maps": true,
"file": "bundle/bundle.min.js",
"diff": false,
"reporter": "progress"
Expand Down
4 changes: 2 additions & 2 deletions test/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ describe('API tests', () => {
const lines = code.split('\n') as [string, ...string[]],
[first] = lines;
if (
first.endsWith(' (main)') || /^\/\/ (?:config|i18n)(?!\S)/u.test(first)
!first.endsWith(' (main)') && !/^\/\/ (?:config|i18n)(?!\S)/u.test(first)
) {
it(first.slice(3), () => {
try {
eval(code); // eslint-disable-line no-eval
if (code.includes('Parser.config = ')) {
Parser.config = 'default';
Parser.config = require('../../config/default');
}
} catch (e) {
if (e instanceof assert.AssertionError) {
Expand Down

0 comments on commit 4ff7830

Please sign in to comment.