You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
investigate if this is an existing method within lodash
if not:
abstract to a helper function
add tests
update usages
update existing tests to test only A vs B logic branches for new function
the following tests should all pass:
ava('.isEmptyObject() returns false when passed a non-object',(t)=>{t.false(isEmptyObject('threeve'));t.false(isEmptyObject(false));t.false(isEmptyObject(42));});ava('.isEmptyObject() returns false when passed an object with properties',(t)=>{t.false(isEmptyObject({a: 'threeve',b: 42,c: false}));});ava('.isEmptyObject() returns true when passed an empty object',(t)=>{t.true(isEmptyObject({}));t.true(isEmptyObject([]));t.true(isEmptyObject(null));});
The text was updated successfully, but these errors were encountered:
n8rzz
added
has pull request
Add this label when an issue has a PR which will resolve it
WIP
Add this label to work-in-progress PRs which are not yet ready for review
labels
Apr 3, 2017
This is a very common pattern throughout the app.
if not:
the following tests should all pass:
The text was updated successfully, but these errors were encountered: