Travis build: 2024 [cron]

This commit is contained in:
30secondsofcode
2018-05-02 21:04:11 +00:00
parent 2c00b520a9
commit 02162a9fd5
6 changed files with 118 additions and 53 deletions

File diff suppressed because one or more lines are too long

View File

@ -3,5 +3,7 @@ n < 0
? (() => {
throw new TypeError('Negative numbers are not allowed!');
})()
: n <= 1 ? 1 : n * factorial(n - 1);
: n <= 1
? 1
: n * factorial(n - 1);
module.exports = factorial;

View File

@ -1,5 +1,9 @@
const getMeridiemSuffixOfInteger = num =>
num === 0 || num === 24
? 12 + 'am'
: num === 12 ? 12 + 'pm' : num < 12 ? num % 12 + 'am' : num % 12 + 'pm';
: num === 12
? 12 + 'pm'
: num < 12
? num % 12 + 'am'
: num % 12 + 'pm';
module.exports = getMeridiemSuffixOfInteger;

View File

@ -3,7 +3,9 @@ arr.reduce(
(acc, val, i) =>
i === arr.length - 2
? acc + val + end
: i === arr.length - 1 ? acc + val : acc + val + separator,
: i === arr.length - 1
? acc + val
: acc + val + separator,
''
);
module.exports = join;

View File

@ -3,5 +3,7 @@ Array.isArray(val)
? val.length
: val && typeof val === 'object'
? val.size || val.length || Object.keys(val).length
: typeof val === 'string' ? new Blob([val]).size : 0;
: typeof val === 'string'
? new Blob([val]).size
: 0;
module.exports = size;

View File

@ -1,4 +1,4 @@
Test log for: Wed May 02 2018 16:58:23 GMT+0000 (UTC)
Test log for: Wed May 02 2018 21:04:05 GMT+0000 (UTC)
> 30-seconds-of-code@0.0.3 test /home/travis/build/Chalarangelo/30-seconds-of-code
> tape test/**/*.test.js | tap-spec
@ -2000,8 +2000,8 @@ Test log for: Wed May 02 2018 16:58:23 GMT+0000 (UTC)
✔ zipWith is a Function
✔ Sends a GET request
✔ Runs the function provided
✔ Runs promises in series
✔ Sends a POST request
✔ Runs promises in series
✔ Works as expecting, passing arguments properly
✔ Works with multiple promises