Test cleanup and fixes [g-h]
This commit is contained in:
@ -1,13 +1,10 @@
|
||||
const expect = require('expect');
|
||||
const get = require('./get.js');
|
||||
|
||||
|
||||
test('get is a Function', () => {
|
||||
test('get is a Function', () => {
|
||||
expect(get).toBeInstanceOf(Function);
|
||||
});
|
||||
const obj = { selector: { to: { val: 'val to get' } } };
|
||||
test('Retrieve a property indicated by the selector from an object.', () => {
|
||||
const obj = { selector: { to: { val: 'val to get' } } };
|
||||
test('Retrieve a property indicated by the selector from an object.', () => {
|
||||
expect(get(obj, 'selector.to.val')).toEqual(['val to get'])
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user