-
Notifications
You must be signed in to change notification settings - Fork 1
Cleaned up and replace mocha with jest #7
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
Conversation
john-ko
commented
Feb 29, 2020
- Updated README.md
- Changed unit tests from mocha to jest
- Updated test to get 100% coverage
- Updated syntax and make more readable
- Cleaned up code
- Removed unused npm scripts and dev deps.
Feature/promise
@@ -1,87 +0,0 @@ | |||
import loadScript from '../../src/index' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dangit i forgot the main script
README.md
Outdated
- https://bitsofco.de/async-vs-defer/ | ||
- https://flaviocopes.com/javascript-async-defer/ | ||
- will fallback to whichever is Best practice | ||
- also since this script is most likely loaded on content load and scriptloading is done after, might not matter? should test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did some research and realized that dynamic script are async by default! https://javascript.info/script-async-defer#dynamic-scripts Looks like we don't even have to add it~! Maybe it can be a patch later, if so I can create an issue for it 😁
LGTM! |