test(HH-615): align release gate contracts (#166)
Co-authored-by: Rogee <rogee@ipao.vip>
This commit is contained in:
@@ -11,7 +11,9 @@ const customBrand = {
|
||||
|
||||
const initializeEntrypoint = filename => {
|
||||
const html = readFileSync(filename, 'utf8');
|
||||
const inlineScript = html.match(/<script>\s*([\s\S]*?)<\/script>/);
|
||||
const inlineScript = html.match(
|
||||
/<script(?: type="module")?>\s*([\s\S]*?)<\/script>/
|
||||
);
|
||||
const runtimeConfigIndex = html.indexOf('/runtime-config.js');
|
||||
|
||||
expect(runtimeConfigIndex).toBeGreaterThan(-1);
|
||||
|
||||
Reference in New Issue
Block a user