-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5106 from Kovensky/fix-4829
Fix #4829: render non-grouped knobs in the ALL tab
- Loading branch information
Showing
3 changed files
with
200 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
addons/knobs/src/components/__tests__/__snapshots__/Panel.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Panel groups should have no tabs when there are no groupIds 1`] = ` | ||
Array [ | ||
Array [ | ||
Object { | ||
"defaultValue": "test", | ||
"name": "foo", | ||
"used": true, | ||
}, | ||
], | ||
] | ||
`; | ||
|
||
exports[`Panel groups should have one tab per groupId and an empty ALL tab when all are defined 1`] = ` | ||
Array [ | ||
Array [ | ||
Object { | ||
"defaultValue": "test", | ||
"groupId": "foo", | ||
"name": "foo", | ||
"used": true, | ||
}, | ||
], | ||
Array [ | ||
Object { | ||
"defaultValue": "test2", | ||
"groupId": "bar", | ||
"name": "bar", | ||
"used": true, | ||
}, | ||
], | ||
] | ||
`; | ||
|
||
exports[`Panel groups the ALL tab should have its own additional content when there are knobs both with and without a groupId 1`] = ` | ||
Array [ | ||
Array [ | ||
Object { | ||
"defaultValue": "test", | ||
"groupId": "foo", | ||
"name": "foo", | ||
"used": true, | ||
}, | ||
], | ||
Array [ | ||
Object { | ||
"defaultValue": "test2", | ||
"name": "bar", | ||
"used": true, | ||
}, | ||
], | ||
] | ||
`; |