style: format code
This commit is contained in:
@@ -33,9 +33,7 @@ describe("applyExclusiveSlotSelection", () => {
|
||||
expect(result.warnings).toContain(
|
||||
'Exclusive slot "memory" switched from "memory-core" to "memory".',
|
||||
);
|
||||
expect(result.warnings).toContain(
|
||||
'Disabled other "memory" slot plugins: memory-core.',
|
||||
);
|
||||
expect(result.warnings).toContain('Disabled other "memory" slot plugins: memory-core.');
|
||||
});
|
||||
|
||||
it("does nothing when the slot already matches", () => {
|
||||
|
||||
@@ -76,9 +76,7 @@ export function applyExclusiveSlotSelection(params: {
|
||||
}
|
||||
|
||||
if (disabledIds.length > 0) {
|
||||
warnings.push(
|
||||
`Disabled other "${slotKey}" slot plugins: ${disabledIds.sort().join(", ")}.`,
|
||||
);
|
||||
warnings.push(`Disabled other "${slotKey}" slot plugins: ${disabledIds.sort().join(", ")}.`);
|
||||
}
|
||||
|
||||
const changed = prevSlot !== params.selectedId || disabledIds.length > 0;
|
||||
|
||||
Reference in New Issue
Block a user