Refractoring Stage 6.15 Scoped the core app.js implementation locally; other renderer scripts continue to access it through window.epMailShell. Bumped the version to 0.4.27 (Android version code 427) and updated REFACTOR_PLAN.md.
This commit is contained in:
@@ -24,6 +24,8 @@ test('renderer bootstrap loads shared state and mail security before the applica
|
||||
|
||||
test('core app shell uses the namespaced renderer state', () => {
|
||||
const app = read('app.js');
|
||||
assert.match(app, /^\(\(\) => \{/);
|
||||
assert.match(app, /window\.epMailShell = Object\.freeze/);
|
||||
assert.match(app, /const state = window\.epMailState/);
|
||||
assert.doesNotMatch(app, /^\s*(?:const|let|var)\s+(?:messages|contacts|activeMessage|activeFolder|activeView|query|toastTimer|selectedIds)\b/m);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user