chore(prettier): full repo linting and code reformatting once and for all (#3627)

This commit is contained in:
Alireza authored and GitHub committed 2023-09-01 16:19:39 -04:00
1 parent 01500a2d4c
commit 9045ddaedc
656 files changed
+21737 -20628

No files matched your search

@@ -1,9 +1,9 @@
import resolveObjectPath from './resolveObjectPath';
describe('resolveObjectPath', function() {
describe('resolveObjectPath', function () {
let config;
beforeEach(function() {
beforeEach(function () {
config = {
active: {
user: {
@@ -21,13 +21,13 @@ describe('resolveObjectPath', function() {
};
});
it('should safely return deeply nested values from an object', function() {
it('should safely return deeply nested values from an object', function () {
expect(resolveObjectPath(config, 'active.user.name.first')).toBe('John');
expect(resolveObjectPath(config, 'active.user.name.last')).toBe('Doe');
expect(resolveObjectPath(config, 'active.servers.0.ipv4')).toBe('10.0.0.1');
});
it('should silently return undefined when intermediate values are not valid objects', function() {
it('should silently return undefined when intermediate values are not valid objects', function () {
expect(resolveObjectPath(config, 'active.usr.name.first')).toBeUndefined();
expect(resolveObjectPath(config, 'active.name.last')).toBeUndefined();
expect(resolveObjectPath(config, 'active.servers.7.ipv4')).toBeUndefined();