Travis build: 1490 [cron]

This commit is contained in:
30secondsofcode
2018-01-30 20:16:28 +00:00
parent adc7595090
commit 2d06a74d64
7 changed files with 15 additions and 14 deletions

4
dist/_30s.es5.js vendored
View File

@ -1638,8 +1638,8 @@ var pullBy = function pullBy(arr) {
}; };
var randomHexColorCode = function randomHexColorCode() { var randomHexColorCode = function randomHexColorCode() {
var n = (Math.random() * 0xfffff | 0).toString(16); var n = (Math.random() * 0xfffff * 1000000).toString(16);
return '#' + (n.length !== 6 ? (Math.random() * 0xf | 0).toString(16) + n : n); return '#' + n.slice(0, 6);
}; };
var randomIntArrayInRange = function randomIntArrayInRange(min, max) { var randomIntArrayInRange = function randomIntArrayInRange(min, max) {

File diff suppressed because one or more lines are too long

4
dist/_30s.esm.js vendored
View File

@ -938,8 +938,8 @@ const pullBy = (arr, ...args) => {
}; };
const randomHexColorCode = () => { const randomHexColorCode = () => {
let n = ((Math.random() * 0xfffff) | 0).toString(16); let n = (Math.random() * 0xfffff * 1000000).toString(16);
return '#' + (n.length !== 6 ? ((Math.random() * 0xf) | 0).toString(16) + n : n); return '#' + n.slice(0, 6);
}; };
const randomIntArrayInRange = (min, max, n = 1) => const randomIntArrayInRange = (min, max, n = 1) =>

4
dist/_30s.js vendored
View File

@ -944,8 +944,8 @@ const pullBy = (arr, ...args) => {
}; };
const randomHexColorCode = () => { const randomHexColorCode = () => {
let n = ((Math.random() * 0xfffff) | 0).toString(16); let n = (Math.random() * 0xfffff * 1000000).toString(16);
return '#' + (n.length !== 6 ? ((Math.random() * 0xf) | 0).toString(16) + n : n); return '#' + n.slice(0, 6);
}; };
const randomIntArrayInRange = (min, max, n = 1) => const randomIntArrayInRange = (min, max, n = 1) =>

2
dist/_30s.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
const randomHexColorCode = () => { const randomHexColorCode = () => {
let n = ((Math.random() * 0xfffff) | 0).toString(16); let n = (Math.random() * 0xfffff * 1000000).toString(16);
return '#' + (n.length !== 6 ? ((Math.random() * 0xf) | 0).toString(16) + n : n); return '#' + n.slice(0, 6);
}; };
module.exports = randomHexColorCode module.exports = randomHexColorCode

View File

@ -1,4 +1,4 @@
Test log for: Mon Jan 29 2018 20:15:23 GMT+0000 (UTC) Test log for: Tue Jan 30 2018 20:16:22 GMT+0000 (UTC)
> 30-seconds-of-code@0.0.1 test /home/travis/build/Chalarangelo/30-seconds-of-code > 30-seconds-of-code@0.0.1 test /home/travis/build/Chalarangelo/30-seconds-of-code
> tape test/**/*.test.js | tap-spec > tape test/**/*.test.js | tap-spec
@ -1108,6 +1108,7 @@ Test log for: Mon Jan 29 2018 20:15:23 GMT+0000 (UTC)
Testing randomHexColorCode Testing randomHexColorCode
✔ randomHexColorCode is a Function ✔ randomHexColorCode is a Function
✔ should be equal
Testing randomIntArrayInRange Testing randomIntArrayInRange
@ -1608,8 +1609,8 @@ Test log for: Mon Jan 29 2018 20:15:23 GMT+0000 (UTC)
✔ Works with multiple promises ✔ Works with multiple promises
total: 721 total: 722
passing: 721 passing: 722
duration: 3.1s duration: 2.9s