mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-11 01:44:50 +08:00
fix(test): immediately reposition caret and tape on tapeMargin change (@byseif21) (#6860)
### Description changing `tapeMargin` mid-test didn’t move the caret until typing resumed because no layout update was triggered for this config.
This commit is contained in:
parent
a3764460e4
commit
5fcf964ebc
2 changed files with 8 additions and 1 deletions
|
|
@ -55,7 +55,13 @@ describe("ConfigMeta", () => {
|
|||
.sort();
|
||||
|
||||
expect(configsWithTriggeResize).toEqual(
|
||||
["fontSize", "keymapSize", "maxLineWidth", "tapeMode"].sort()
|
||||
[
|
||||
"fontSize",
|
||||
"keymapSize",
|
||||
"maxLineWidth",
|
||||
"tapeMode",
|
||||
"tapeMargin",
|
||||
].sort()
|
||||
);
|
||||
});
|
||||
describe("overrideValue", () => {
|
||||
|
|
|
|||
|
|
@ -512,6 +512,7 @@ export const configMetadata: ConfigMetadataObject = {
|
|||
tapeMargin: {
|
||||
icon: "fa-tape",
|
||||
displayString: "tape margin",
|
||||
triggerResize: true,
|
||||
changeRequiresRestart: false,
|
||||
},
|
||||
smoothLineScroll: {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue