Housekeeping
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@ -7,5 +7,4 @@ test.sh
|
||||
dist/flavor\.min\.css
|
||||
dist/flavor\.css
|
||||
test_old/
|
||||
coverage/clover.xml
|
||||
coverage/lcov-report
|
||||
coverage/
|
||||
|
||||
@ -13,7 +13,7 @@ script:
|
||||
- npm run linter
|
||||
- npm run packager
|
||||
- npm run tester
|
||||
- npm run test-with-coverage
|
||||
- npm run test
|
||||
- npm run extractor
|
||||
- npm run vscoder
|
||||
- npm run glossary:keymaker
|
||||
|
||||
File diff suppressed because one or more lines are too long
3059
coverage/lcov.info
3059
coverage/lcov.info
File diff suppressed because it is too large
Load Diff
3088
package-lock.json
generated
3088
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -36,8 +36,7 @@
|
||||
"vscoder": "node ./scripts/vscodegen.js",
|
||||
"packager": "node ./scripts/module.js",
|
||||
"localizer": "node ./scripts/localize.js",
|
||||
"test": "jest --verbose --coverage",
|
||||
"test-with-coverage": "jest --coverage && cat ./coverage/lcov.info | codacy-coverage"
|
||||
"test": "jest --verbose --coverage"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
# 30 seconds of code
|
||||
|
||||
[](https://github.com/30-seconds/30-seconds-of-code/blob/master/LICENSE) [](https://www.npmjs.com/package/30-seconds-of-code) [](https://www.npmjs.com/package/30-seconds-of-code) [](https://snyk.io/test/github/30-seconds/30-seconds-of-code?targetFile=package.json) <br/>
|
||||
[](https://travis-ci.com/30-seconds/30-seconds-of-code) [](https://www.codacy.com/app/Chalarangelo/30-seconds-of-code?utm_source=github.com&utm_medium=referral&utm_content=30-seconds/30-seconds-of-code&utm_campaign=Badge_Grade) [](https://codeclimate.com/github/30-seconds/30-seconds-of-code/maintainability) [](https://github.com/Flet/semistandard) <br/>
|
||||
[](https://travis-ci.com/30-seconds/30-seconds-of-code) [](https://www.codacy.com/app/Chalarangelo/30-seconds-of-code?utm_source=github.com&utm_medium=referral&utm_content=30-seconds/30-seconds-of-code&utm_campaign=Badge_Grade) [](https://github.com/Flet/semistandard) <br/>
|
||||
[](https://awesome.re) [](https://www.producthunt.com/posts/30-seconds-of-code) [](https://gitter.im/30-seconds-of-code/Lobby) [](http://makeapullrequest.com)
|
||||
|
||||
> Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less.
|
||||
|
||||
@ -4,6 +4,9 @@ const {tomorrow} = require('./_30s.js');
|
||||
test('tomorrow is a Function', () => {
|
||||
expect(tomorrow).toBeInstanceOf(Function);
|
||||
});
|
||||
test('Returns the correct type', () => {
|
||||
expect(typeof tomorrow()).toBe('string');
|
||||
});
|
||||
const t1 = new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate() + 1);
|
||||
const t2 = new Date(tomorrow());
|
||||
test('Returns the correct year', () => {
|
||||
|
||||
Reference in New Issue
Block a user