Skip to content

Commit a6b5d2d

Browse files
committed
re-add tests
1 parent d6fdd47 commit a6b5d2d

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
run: npm run test:example-app
4545
timeout-minutes: 5
4646
- name: test-karma-examples
47-
run: npm run test:karma-app
47+
run: npm run test:karma-app -- --watch=false --browsers=ChromeHeadlessCI --no-progress
4848
timeout-minutes: 5
4949
- name: lint
5050
run: npm run lint

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)