Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style(core): modify camelize error message #177

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

style(core): modify camelize error message #177

wants to merge 3 commits into from

Conversation

army8735
Copy link
Contributor

@army8735 army8735 commented Aug 5, 2018

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)
Description of change

File name can not be a pure number.
If so, egg-core will throw an exception with a regular expression matching message which is confused.

File name can not be a pure number.
If so, egg-core will throw an exception with a regular expression matching message which is confused.
@@ -225,7 +225,7 @@ describe('test/loader/file_loader.test.js', () => {
directory: path.join(dirBase, 'error/dotdir'),
target: mod,
}).load();
}, /dot.dir is not match 'a-z0-9_-' in dot.dir\/a.js/);
}, 'dot.dir is not match \'^[a-z][a-z0-9_-]*$\' in dot.dir\/a.js');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be reg

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well done

@codecov
Copy link

codecov bot commented Aug 20, 2018

Codecov Report

Merging #177 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #177   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          18     18           
  Lines         958    958           
=====================================
  Hits          958    958
Impacted Files Coverage Δ
lib/loader/file_loader.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ae38fa4...e1b9ddb. Read the comment docs.

@@ -235,13 +235,13 @@ describe('test/loader/file_loader.test.js', () => {
directory: path.join(dirBase, 'error/underscore-dir'),
target: mod,
}).load();
}, /_underscore is not match 'a-z0-9_-' in _underscore\/a.js/);
}, '_underscore is not match \'^[a-z][a-z0-9_-]*$\' in _underscore\/a.js');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this line should be regexp

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ping @army8735

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants