From 5a37400cdeb55c13d0a044d630b67fbc4c2d2461 Mon Sep 17 00:00:00 2001 From: Edgar Garcia Date: Fri, 18 Oct 2024 17:59:11 -0600 Subject: [PATCH] feat(google): remove hiddenKeys test --- .../mapObjectEditor.component.spec.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/packages/core/src/forms/mapObjectEditor/mapObjectEditor.component.spec.js b/packages/core/src/forms/mapObjectEditor/mapObjectEditor.component.spec.js index b18b21c7776..41be1ae763f 100644 --- a/packages/core/src/forms/mapObjectEditor/mapObjectEditor.component.spec.js +++ b/packages/core/src/forms/mapObjectEditor/mapObjectEditor.component.spec.js @@ -82,17 +82,4 @@ describe('Component: mapObjectEditor', function () { expect(dom.find('.error-message').length).toBe(1); }); }); - - describe('hidden keys', function () { - it('does not render key if included in `hiddenKeys`', function () { - scope.model = { a: '1', b: { foo: 'bar' } }; - scope.hiddenKeys = ['a']; - const dom = this.compile('')(scope); - scope.$digest(); - - expect($(dom.find('tbody tr')).length).toBe(1); - expect(dom.find('input').get(0).value).toBe('b'); - expect(dom.find('textarea').get(0).value).toBe(JSON.stringify({ bar: 'baz' }, null, 2)); - }); - }); });