Skip to content

Commit 291c573

Browse files
committed
re-add tests
1 parent d6fdd47 commit 291c573

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

projects/testing-library/src/tests/render-template.spec.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,27 @@ test('overrides output properties', async () => {
114114
expect(clicked).toHaveBeenCalledWith('off');
115115
});
116116

117+
describe('removeAngularAttributes', () => {
118+
it('should remove angular attributes', async () => {
119+
await render('<div onOff (clicked)="clicked($event)"></div>', {
120+
imports: [OnOffDirective],
121+
removeAngularAttributes: true,
122+
});
123+
124+
expect(document.querySelector('[ng-version]')).toBeNull();
125+
expect(document.querySelector('[id]')).toBeNull();
126+
});
127+
128+
it('is disabled by default', async () => {
129+
await render('<div onOff (clicked)="clicked($event)"></div>', {
130+
imports: [OnOffDirective],
131+
});
132+
133+
expect(document.querySelector('[ng-version]')).not.toBeNull();
134+
expect(document.querySelector('[id]')).not.toBeNull();
135+
});
136+
});
137+
117138
test('updates properties and invokes change detection', async () => {
118139
const view = await render<{ value: string }>('<div [update]="value" ></div>', {
119140
imports: [UpdateInputDirective],

0 commit comments

Comments
 (0)