Travis build: 1308 [cron]
This commit is contained in:
2
test/atob/atob.js
Normal file
2
test/atob/atob.js
Normal file
@ -0,0 +1,2 @@
|
||||
const atob = str => new Buffer(str, 'base64').toString('binary');
|
||||
module.exports = atob
|
||||
13
test/atob/atob.test.js
Normal file
13
test/atob/atob.test.js
Normal file
@ -0,0 +1,13 @@
|
||||
const test = require('tape');
|
||||
const atob = require('./atob.js');
|
||||
|
||||
test('Testing atob', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof atob === 'function', 'atob is a Function');
|
||||
//t.deepEqual(atob(args..), 'Expected');
|
||||
//t.equal(atob(args..), 'Expected');
|
||||
//t.false(atob(args..), 'Expected');
|
||||
//t.throws(atob(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
2
test/btoa/btoa.js
Normal file
2
test/btoa/btoa.js
Normal file
@ -0,0 +1,2 @@
|
||||
const btoa = str => new Buffer(str, 'binary').toString('base64');
|
||||
module.exports = btoa
|
||||
13
test/btoa/btoa.test.js
Normal file
13
test/btoa/btoa.test.js
Normal file
@ -0,0 +1,13 @@
|
||||
const test = require('tape');
|
||||
const btoa = require('./btoa.js');
|
||||
|
||||
test('Testing btoa', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof btoa === 'function', 'btoa is a Function');
|
||||
//t.deepEqual(btoa(args..), 'Expected');
|
||||
//t.equal(btoa(args..), 'Expected');
|
||||
//t.false(btoa(args..), 'Expected');
|
||||
//t.throws(btoa(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
@ -1,2 +1,2 @@
|
||||
const flip = fn => (...args) => fn(args.pop(), ...args);
|
||||
const flip = fn => (first, ...rest) => fn(...rest, first);
|
||||
module.exports = flip
|
||||
@ -1,9 +1,9 @@
|
||||
const get = (from, ...selectors) =>
|
||||
[...selectors].map(s =>
|
||||
s
|
||||
.replace(/\[([^\[\]]*)\]/g, '.$1.')
|
||||
.split('.')
|
||||
.filter(t => t !== '')
|
||||
.reduce((prev, cur) => prev && prev[cur], from)
|
||||
);
|
||||
module.exports = get
|
||||
[...selectors].map(s =>
|
||||
s
|
||||
.replace(/\[([^\[\]]*)\]/g, '.$1.')
|
||||
.split('.')
|
||||
.filter(t => t !== '')
|
||||
.reduce((prev, cur) => prev && prev[cur], from)
|
||||
);
|
||||
module.exports = get
|
||||
26
test/testlog
26
test/testlog
@ -1,4 +1,4 @@
|
||||
Test log for: Wed Jan 17 2018 20:11:11 GMT+0000 (UTC)
|
||||
Test log for: Thu Jan 18 2018 20:09:23 GMT+0000 (UTC)
|
||||
|
||||
> 30-seconds-of-code@0.0.1 test /home/travis/build/Chalarangelo/30-seconds-of-code
|
||||
> tape test/**/*.test.js | tap-spec
|
||||
@ -44,6 +44,10 @@ Test log for: Wed Jan 17 2018 20:11:11 GMT+0000 (UTC)
|
||||
|
||||
✔ arrayToHtmlList is a Function
|
||||
|
||||
Testing atob
|
||||
|
||||
✔ atob is a Function
|
||||
|
||||
Testing average
|
||||
|
||||
✔ average is a Function
|
||||
@ -71,6 +75,10 @@ Test log for: Wed Jan 17 2018 20:11:11 GMT+0000 (UTC)
|
||||
|
||||
✔ bottomVisible is a Function
|
||||
|
||||
Testing btoa
|
||||
|
||||
✔ btoa is a Function
|
||||
|
||||
Testing byteSize
|
||||
|
||||
✔ byteSize is a Function
|
||||
@ -360,6 +368,11 @@ Test log for: Wed Jan 17 2018 20:11:11 GMT+0000 (UTC)
|
||||
✔ Initializes an array containing the numbers in the specified range
|
||||
✔ Initializes an array containing the numbers in the specified range
|
||||
|
||||
Testing get
|
||||
|
||||
✔ get is a Function
|
||||
✔ Retrieve a property indicated by the selector from an object.
|
||||
|
||||
Testing getDaysDiffBetweenDates
|
||||
|
||||
✔ getDaysDiffBetweenDates is a Function
|
||||
@ -972,11 +985,6 @@ Test log for: Wed Jan 17 2018 20:11:11 GMT+0000 (UTC)
|
||||
✔ sdbm is a Function
|
||||
✔ Hashes the input string into a whole number.
|
||||
|
||||
Testing select
|
||||
|
||||
✔ select is a Function
|
||||
✔ Retrieve a property indicated by the selector from an object.
|
||||
|
||||
Testing serializeCookie
|
||||
|
||||
✔ serializeCookie is a Function
|
||||
@ -1261,8 +1269,8 @@ Test log for: Wed Jan 17 2018 20:11:11 GMT+0000 (UTC)
|
||||
✔ zipObject(test, string) throws an error
|
||||
|
||||
|
||||
total: 554
|
||||
passing: 554
|
||||
duration: 329ms
|
||||
total: 556
|
||||
passing: 556
|
||||
duration: 307ms
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user