Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should return undefined when graphs cannot be found', function (done) {
var mock = mockObject();
var leetMock = leet(mock);
var actual = leetMock.extract('firstName', 'address.missing', 'phoneNumber.1.missing');
assert.equal(Object.keys(actual).length, 3);
assert.property(actual, 'firstName');
assert.isTrue(actual.hasOwnProperty('address.missing'));
assert.isTrue(actual.hasOwnProperty('phoneNumber.1.missing'));
assert.equal(actual['firstName'], 'John');
assert.equal(actual['address.missing'], undefined);
assert.equal(actual['phoneNumber.1.missing'], undefined);
done();
});