Script and tag cleanup, fixed select tests

This commit is contained in:
Angelos Chalaris
2018-01-16 15:15:51 +02:00
parent 336ce6f72b
commit 2a61e7671e
8 changed files with 33 additions and 24 deletions

View File

@ -6,10 +6,10 @@ test('Testing select', (t) => {
//Please go to https://github.com/substack/tape
t.true(typeof select === 'function', 'select is a Function');
const obj = { selector: { to: { val: 'val to select' } } };
t.equal(select(obj, 'selector.to.val'), 'val to select', "Retrieve a property indicated by the selector from an object.");
t.deepEqual(select(obj, 'selector.to.val'), ['val to select'], "Retrieve a property indicated by the selector from an object.");
//t.deepEqual(select(args..), 'Expected');
//t.equal(select(args..), 'Expected');
//t.false(select(args..), 'Expected');
//t.throws(select(args..), 'Expected');
t.end();
});
});