Travis build: 2114 [cron]

This commit is contained in:
30secondsofcode
2018-05-31 21:18:41 +00:00
parent 91d9546169
commit 19d7818ae6
5 changed files with 64 additions and 24 deletions

View File

@ -1,4 +1,4 @@
Test log for: Wed May 30 2018 21:16:49 GMT+0000 (UTC)
Test log for: Thu May 31 2018 21:18:33 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
@ -1765,6 +1765,10 @@ Test log for: Wed May 30 2018 21:16:49 GMT+0000 (UTC)
✔ toDecimalMark is a Function
✔ convert a float-point arithmetic to the Decimal mark form
Testing toHash
✔ toHash is a Function
Testing toKebabCase
✔ toKebabCase is a Function
@ -2041,10 +2045,10 @@ Test log for: Wed May 30 2018 21:16:49 GMT+0000 (UTC)
✖ currency: Japanese Yen | currencyLangFormat: Local
total: 1021
passing: 1019
total: 1022
passing: 1020
failing: 2
duration: 2.3s
duration: 2.5s
undefined

7
test/toHash/toHash.js Normal file
View File

@ -0,0 +1,7 @@
const toHash = (object, key) =>
Array.prototype.reduce.call(
object,
(acc, data, index) => ((acc[!key ? index : data[key]] = data), acc),
{}
);
module.exports = toHash;

View File

@ -0,0 +1,13 @@
const test = require('tape');
const toHash = require('./toHash.js');
test('Testing toHash', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
t.true(typeof toHash === 'function', 'toHash is a Function');
//t.deepEqual(toHash(args..), 'Expected');
//t.equal(toHash(args..), 'Expected');
//t.false(toHash(args..), 'Expected');
//t.throws(toHash(args..), 'Expected');
t.end();
});