feat: Add a simple mode to the visual card editor (#2588)
This commit is contained in:
@@ -31,7 +31,7 @@ describe('getDocLinkPath', () => {
|
||||
expect(
|
||||
getDocLinkPath(['cameras', 2], {
|
||||
type: 'expandable',
|
||||
docPath: 'cameras.engine',
|
||||
docPath: ['cameras', 'engine'],
|
||||
schema: [],
|
||||
}),
|
||||
).toEqual(['cameras', 'engine']);
|
||||
@@ -41,6 +41,12 @@ describe('getDocLinkPath', () => {
|
||||
expect(getDocLinkPath(['cameras'], { type: 'expandable', schema: [] })).toBeNull();
|
||||
});
|
||||
|
||||
it('should not link a grid', () => {
|
||||
// A grid only lays out the fields within it, and documentation is linked
|
||||
// for what a group of settings is, not for how it is arranged.
|
||||
expect(getDocLinkPath(['dimensions'], { type: 'grid', schema: [] })).toBeNull();
|
||||
});
|
||||
|
||||
it('should order nested container paths into configuration order', () => {
|
||||
expect(
|
||||
getDocLinkPath(
|
||||
|
||||
Reference in New Issue
Block a user