diff --git a/projects/testing-library/tests/debug.spec.ts b/projects/testing-library/tests/debug.spec.ts
index 3a868989..29845d3b 100644
--- a/projects/testing-library/tests/debug.spec.ts
+++ b/projects/testing-library/tests/debug.spec.ts
@@ -2,7 +2,7 @@ import { Component } from '@angular/core';
import { render } from '../src/public_api';
@Component({
- selector: 'fixture',
+ selector: 'atl-fixture',
template: `
rawr
@@ -11,7 +11,7 @@ import { render } from '../src/public_api';
class FixtureComponent {}
test('debug', async () => {
- jest.spyOn(console, 'log').mockImplementation(() => {});
+ jest.spyOn(console, 'log').mockImplementation();
const { debug } = await render(FixtureComponent);
debug();
@@ -21,7 +21,7 @@ test('debug', async () => {
});
test('debug allows to be called with an element', async () => {
- jest.spyOn(console, 'log').mockImplementation(() => {});
+ jest.spyOn(console, 'log').mockImplementation();
const { debug, getByTestId } = await render(FixtureComponent);
const btn = getByTestId('btn');
diff --git a/projects/testing-library/tests/detect-changes.spec.ts b/projects/testing-library/tests/detect-changes.spec.ts
index e74c402f..5dae8254 100644
--- a/projects/testing-library/tests/detect-changes.spec.ts
+++ b/projects/testing-library/tests/detect-changes.spec.ts
@@ -5,7 +5,7 @@ import { delay } from 'rxjs/operators';
import { render, fireEvent } from '../src/public_api';
@Component({
- selector: 'fixture',
+ selector: 'atl-fixture',
template: `
diff --git a/projects/testing-library/tests/find-by.spec.ts b/projects/testing-library/tests/find-by.spec.ts
index 791fa215..c55430ee 100644
--- a/projects/testing-library/tests/find-by.spec.ts
+++ b/projects/testing-library/tests/find-by.spec.ts
@@ -4,7 +4,7 @@ import { render, screen } from '../src/public_api';
import { mapTo } from 'rxjs/operators';
@Component({
- selector: 'fixture',
+ selector: 'atl-fixture',
template: `
{{ result | async }}
`,
})
class FixtureComponent {
diff --git a/projects/testing-library/tests/fire-event.spec.ts b/projects/testing-library/tests/fire-event.spec.ts
index 1c93bc59..7a9a7f0d 100644
--- a/projects/testing-library/tests/fire-event.spec.ts
+++ b/projects/testing-library/tests/fire-event.spec.ts
@@ -2,7 +2,7 @@ import { Component } from '@angular/core';
import { render, fireEvent } from '../src/public_api';
@Component({
- selector: 'fixture',
+ selector: 'atl-fixture',
template: `
`,
})
class FixtureComponent {}
diff --git a/projects/testing-library/tests/issues/188.spec.ts b/projects/testing-library/tests/issues/188.spec.ts
index c972aad0..cb430bb4 100644
--- a/projects/testing-library/tests/issues/188.spec.ts
+++ b/projects/testing-library/tests/issues/188.spec.ts
@@ -5,7 +5,7 @@ import { render } from '../../src/public_api';
@Component({
template: `
Hello {{ formattedName }}
`,
})
-export class BugOnChangeComponent implements OnChanges {
+class BugOnChangeComponent implements OnChanges {
@Input() name: string;
formattedName: string;
diff --git a/projects/testing-library/tests/issues/67.spec.ts b/projects/testing-library/tests/issues/67.spec.ts
index 1e4dff75..243dbf4d 100644
--- a/projects/testing-library/tests/issues/67.spec.ts
+++ b/projects/testing-library/tests/issues/67.spec.ts
@@ -13,7 +13,7 @@ import { render } from '../../src/public_api';
`,
})
-export class BugGetByLabelTextComponent {}
+class BugGetByLabelTextComponent {}
it('first step to reproduce the bug: skip this test to avoid the error or remove the for attribute of label', async () => {
expect(await render(BugGetByLabelTextComponent)).toBeDefined();
diff --git a/projects/testing-library/tests/navigate.spec.ts b/projects/testing-library/tests/navigate.spec.ts
index d26dde3b..ca0d8ad8 100644
--- a/projects/testing-library/tests/navigate.spec.ts
+++ b/projects/testing-library/tests/navigate.spec.ts
@@ -4,7 +4,7 @@ import { Router } from '@angular/router';
import { render } from '../src/public_api';
@Component({
- selector: 'fixture',
+ selector: 'atl-fixture',
template: ``,
})
class FixtureComponent {}
diff --git a/projects/testing-library/tests/providers/component-provider.spec.ts b/projects/testing-library/tests/providers/component-provider.spec.ts
index e7c88c8a..723a0317 100644
--- a/projects/testing-library/tests/providers/component-provider.spec.ts
+++ b/projects/testing-library/tests/providers/component-provider.spec.ts
@@ -43,17 +43,17 @@ test('shows the provided service value with template syntax', async () => {
});
@Injectable()
-export class Service {
+class Service {
foo() {
return 'foo';
}
}
@Component({
- selector: 'fixture-component',
+ selector: 'atl-fixture',
template: '{{service.foo()}}',
providers: [Service],
})
-export class FixtureComponent {
+class FixtureComponent {
constructor(public service: Service) {}
}
diff --git a/projects/testing-library/tests/providers/module-provider.spec.ts b/projects/testing-library/tests/providers/module-provider.spec.ts
index 6270795f..82dbee64 100644
--- a/projects/testing-library/tests/providers/module-provider.spec.ts
+++ b/projects/testing-library/tests/providers/module-provider.spec.ts
@@ -53,16 +53,16 @@ test('shows the provided service value with template syntax', async () => {
});
@Injectable()
-export class Service {
+class Service {
foo() {
return 'foo';
}
}
@Component({
- selector: 'fixture-component',
+ selector: 'atl-fixture',
template: '{{service.foo()}}',
})
-export class FixtureComponent {
+class FixtureComponent {
constructor(public service: Service) {}
}
diff --git a/projects/testing-library/tests/render-template.spec.ts b/projects/testing-library/tests/render-template.spec.ts
index 1bc4e30d..73420211 100644
--- a/projects/testing-library/tests/render-template.spec.ts
+++ b/projects/testing-library/tests/render-template.spec.ts
@@ -1,5 +1,3 @@
-/* eslint-disable testing-library/no-container */
-/* eslint-disable testing-library/render-result-naming-convention */
import { Directive, HostListener, ElementRef, Input, Output, EventEmitter, Component } from '@angular/core';
import { render, fireEvent } from '../src/public_api';
@@ -8,7 +6,7 @@ import { render, fireEvent } from '../src/public_api';
// eslint-disable-next-line @angular-eslint/directive-selector
selector: '[onOff]',
})
-export class OnOffDirective {
+class OnOffDirective {
@Input() on = 'on';
@Input() off = 'off';
@Output() clicked = new EventEmitter