From 9749ff7c672bbcf37de3e20992dfb2ba729835a4 Mon Sep 17 00:00:00 2001 From: jdalton Date: Fri, 3 Apr 2015 12:56:12 -0500 Subject: [PATCH] Add a non-deep property test for `_.get`. --- test/test.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/test.js b/test/test.js index d5a10217d..7b3c8fa00 100644 --- a/test/test.js +++ b/test/test.js @@ -5998,6 +5998,11 @@ QUnit.module('lodash.get'); (function() { + test('should get property values', 1, function() { + var object = { 'a': 'b' }; + strictEqual(_.get(object, 'a'), 'b'); + }); + test('should get deep property values', 1, function() { var object = { 'a': { 'b': { 'c': 3 } } }; strictEqual(_.get(object, 'a.b.c'), 3);