mirror of
https://github.com/usebruno/bruno.git
synced 2025-08-16 01:58:38 +02:00
feat: bru lang - jsonToBru functionality
This commit is contained in:
@ -35,16 +35,4 @@ describe('utils', () => {
|
||||
expect(outdentString(input)).toBe(expectedOutput);
|
||||
});
|
||||
});
|
||||
|
||||
describe('get', () => {
|
||||
it('returns the value at the given path', () => {
|
||||
const input = { a: { b: { c: 1 } } };
|
||||
expect(get(input, 'a.b.c')).toBe(1);
|
||||
});
|
||||
|
||||
it('returns the defaultValue if the path does not exist', () => {
|
||||
const input = { a: { b: { c: 1 } } };
|
||||
expect(get(input, 'a.b.d', 2)).toBe(2);
|
||||
});
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user