feat(tabs): add multi-row tab layout option
This commit is contained in:
1 parent
17747f8a2d
commit
916aad66bf
13 files changed
+216
-13
No files matched your search
@@ -127,3 +127,24 @@ describe("normalizeEditorSettings - continueOnErrorOnBatch", () => {
|
||||
expect(normalizeEditorSettings({ continueOnErrorOnBatch: 1 } as any).continueOnErrorOnBatch).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
describe("normalizeEditorSettings - tabLayout", () => {
|
||||
it("defaults tabLayout to scroll", () => {
|
||||
expect(normalizeEditorSettings({}).tabLayout).toBe("scroll");
|
||||
});
|
||||
|
||||
it("preserves explicit scroll mode", () => {
|
||||
expect(normalizeEditorSettings({ tabLayout: "scroll" }).tabLayout).toBe("scroll");
|
||||
});
|
||||
|
||||
it("preserves explicit wrap mode", () => {
|
||||
expect(normalizeEditorSettings({ tabLayout: "wrap" }).tabLayout).toBe("wrap");
|
||||
});
|
||||
|
||||
it("falls back to scroll for invalid values", () => {
|
||||
expect(normalizeEditorSettings({ tabLayout: "invalid" } as any).tabLayout).toBe("scroll");
|
||||
expect(normalizeEditorSettings({ tabLayout: undefined } as any).tabLayout).toBe("scroll");
|
||||
expect(normalizeEditorSettings({ tabLayout: null } as any).tabLayout).toBe("scroll");
|
||||
expect(normalizeEditorSettings({ tabLayout: 123 } as any).tabLayout).toBe("scroll");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user