Skip to content

Commit

Permalink
feat(google): remove hiddenKeys test
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarulg committed Oct 18, 2024
1 parent 0f6d8cf commit 5a37400
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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('<map-object-editor model="model" hidden-keys="hiddenKeys"></map-object-editor>')(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));
});
});
});

0 comments on commit 5a37400

Please sign in to comment.