Updated testing with proper indentation
Uses two spaces instead of hard tabs.
This commit is contained in:
@ -2,16 +2,16 @@ const test = require('tape');
|
||||
const composeRight = require('./composeRight.js');
|
||||
|
||||
test('Testing composeRight', (t) => {
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof composeRight === 'function', 'composeRight is a Function');
|
||||
//For more information on all the methods supported by tape
|
||||
//Please go to https://github.com/substack/tape
|
||||
t.true(typeof composeRight === 'function', 'composeRight is a Function');
|
||||
const add = (x, y) => x + y;
|
||||
const square = x => x * x;
|
||||
const addAndSquare = composeRight(add, square);
|
||||
t.equal(addAndSquare(1, 2), 9, "Performs left-to-right function composition");
|
||||
//t.deepEqual(composeRight(args..), 'Expected');
|
||||
//t.equal(composeRight(args..), 'Expected');
|
||||
//t.false(composeRight(args..), 'Expected');
|
||||
//t.throws(composeRight(args..), 'Expected');
|
||||
t.end();
|
||||
//t.deepEqual(composeRight(args..), 'Expected');
|
||||
//t.equal(composeRight(args..), 'Expected');
|
||||
//t.false(composeRight(args..), 'Expected');
|
||||
//t.throws(composeRight(args..), 'Expected');
|
||||
t.end();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user