forked from hazza/dspace-angular
Don't enforce ThemedComponent selectors in test HTML
This commit is contained in:
@@ -20,6 +20,11 @@ export default {
|
||||
}
|
||||
},
|
||||
create(context: any) {
|
||||
if (context.getFilename().includes('.spec.ts')) {
|
||||
// skip inline templates in unit tests
|
||||
return {};
|
||||
}
|
||||
|
||||
return {
|
||||
[`Element$1[name = /^${DISALLOWED_THEME_SELECTORS}/]`](node: any) {
|
||||
context.report({
|
||||
|
Reference in New Issue
Block a user