@@ -154,24 +154,24 @@ describe('AEMComponentDirective', () => {
154
154
expect ( dynamicElement . dataset . emptytext ) . toEqual ( TEST_EDIT_CONFIG_EMPTY . emptyLabel ) ;
155
155
} ) ;
156
156
157
- // it('should NOT setup the placeholder', () => {
158
- // isInEditorSpy.and.returnValue(true);
159
- // getEditConfigSpy.and.returnValue(TEST_EDIT_CONFIG_NOT_EMPTY);
157
+ it ( 'should NOT setup the placeholder' , ( ) => {
158
+ isInEditorSpy . and . returnValue ( true ) ;
159
+ getEditConfigSpy . and . returnValue ( TEST_EDIT_CONFIG_NOT_EMPTY ) ;
160
160
161
- // const componentData = {
162
- // attr1: 'Some value',
163
- // attr2: 'Another value',
164
- // ':type': 'directive/comp'
165
- // };
161
+ const componentData = {
162
+ attr1 : 'Some value' ,
163
+ attr2 : 'Another value' ,
164
+ ':type' : 'directive/comp'
165
+ } ;
166
166
167
- // component.data = componentData;
168
- // fixture.detectChanges();
167
+ component . data = componentData ;
168
+ fixture . detectChanges ( ) ;
169
169
170
- // const element = fixture.nativeElement;
171
- // const dynamicElement = element.firstElementChild;
170
+ const element = fixture . nativeElement ;
171
+ const dynamicElement = element . firstElementChild ;
172
172
173
- // expect(dynamicElement.dataset.emptytext).toBeUndefined();
174
- // });
173
+ expect ( dynamicElement . dataset . emptytext ) . toBeUndefined ( ) ;
174
+ } ) ;
175
175
176
176
it ( 'should correctly update the inputs' , ( ) => {
177
177
const componentData1 = {
0 commit comments