This commit is contained in:
parent
39b0160064
commit
2347ecd201
71 changed files with 3779 additions and 1586 deletions
|
|
@ -45,9 +45,9 @@ const selectorExists = (selector: string) => {
|
|||
};
|
||||
|
||||
describe('index DOM selector contract', () => {
|
||||
it('keeps every boot-time querySelector target present in index.html', () => {
|
||||
it('keeps every boot-time required selector target present in index.html', () => {
|
||||
const selectors = Array.from(
|
||||
indexSource.matchAll(/document\.querySelector(?:All)?\(\s*'([^']+)'\s*\)/g),
|
||||
indexSource.matchAll(/queryRequiredElements?\(\s*'([^']+)'\s*,/g),
|
||||
(match) => match[1]
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue