Clear T-18, T-34, T-54, T-55 on master (release note, test/ lint gate, Stage A fixes)
This commit is contained in:
parent
d9d49ebc22
commit
ade0a3ef1d
10 changed files with 74 additions and 23 deletions
|
|
@ -69,8 +69,8 @@ afterEach(async () => {
|
|||
afterAll(() => {
|
||||
for (const key of keys) {
|
||||
const descriptor = previous.get(key);
|
||||
if (descriptor) Object.defineProperty(globalThis, key, descriptor);
|
||||
else Reflect.deleteProperty(globalThis, key);
|
||||
if (descriptor) {Object.defineProperty(globalThis, key, descriptor);}
|
||||
else {Reflect.deleteProperty(globalThis, key);}
|
||||
}
|
||||
browser.happyDOM.abort();
|
||||
});
|
||||
|
|
|
|||
|
|
@ -281,7 +281,7 @@ test('worker count inspection failure is unknown at the queue adapter boundary,
|
|||
getDelayed: empty,
|
||||
isPaused: async () => false,
|
||||
getWorkers: async () => {
|
||||
if (workers === undefined) throw new Error('worker inspection unavailable');
|
||||
if (workers === undefined) {throw new Error('worker inspection unavailable');}
|
||||
return workers;
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ test('the shared desktop/mobile menu advertises working workflows only', () => {
|
|||
item.href,
|
||||
...(item.children?.map(child => child.href) ?? []),
|
||||
]);
|
||||
for (const href of ['/portfolio', '/analytics', '/settings']) expect(hrefs).not.toContain(href);
|
||||
for (const href of ['/portfolio', '/analytics', '/settings']) {expect(hrefs).not.toContain(href);}
|
||||
for (const href of [
|
||||
'/strategies',
|
||||
'/backtests',
|
||||
|
|
@ -20,7 +20,7 @@ test('the shared desktop/mobile menu advertises working workflows only', () => {
|
|||
'/symbols',
|
||||
'/system/monitoring',
|
||||
])
|
||||
expect(hrefs).toContain(href);
|
||||
{expect(hrefs).toContain(href);}
|
||||
});
|
||||
for (const name of ['Portfolio', 'Analytics', 'Settings']) {
|
||||
test(`${name} direct-page fallback explains availability and links to existing analytics`, () => {
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@ beforeAll(async () => {
|
|||
({ requestJson } = await import('../../apps/stock/web-app/src/lib/requestJson'));
|
||||
});
|
||||
afterAll(() => {
|
||||
if (original) Object.defineProperty(globalThis, 'window', original);
|
||||
else Reflect.deleteProperty(globalThis, 'window');
|
||||
if (original) {Object.defineProperty(globalThis, 'window', original);}
|
||||
else {Reflect.deleteProperty(globalThis, 'window');}
|
||||
browser.happyDOM.abort();
|
||||
});
|
||||
const errors = {
|
||||
|
|
@ -23,7 +23,7 @@ const errors = {
|
|||
failureLabel: 'failed',
|
||||
};
|
||||
const parse = (body: unknown) => {
|
||||
if (body !== 42) throw new Error('wrong identity');
|
||||
if (body !== 42) {throw new Error('wrong identity');}
|
||||
return body;
|
||||
};
|
||||
function respond(body: string, status = 200) {
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ test('both copying paths reject lossy state without reading getters, even when f
|
|||
new Date(),
|
||||
Object.create(null),
|
||||
Object.create({ x: 1 }),
|
||||
// eslint-disable-next-line no-sparse-arrays
|
||||
[, 1],
|
||||
[undefined],
|
||||
extraArrayKey,
|
||||
|
|
@ -69,9 +70,9 @@ test('both copying paths reject lossy state without reading getters, even when f
|
|||
cyclic,
|
||||
];
|
||||
for (const copy of [stateCopy, frozenStateCopy]) {
|
||||
for (const value of invalid) expect(() => copy(value)).toThrow();
|
||||
for (const value of invalid) {expect(() => copy(value)).toThrow();}
|
||||
for (const value of [accessor, arrayAccessor, cyclic])
|
||||
expect(() => copy(Object.freeze(value))).toThrow();
|
||||
{expect(() => copy(Object.freeze(value))).toThrow();}
|
||||
}
|
||||
expect(reads).toBe(0);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue