This repository has been archived by the owner on Sep 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use wrapper.debug for snapshot tests
- Loading branch information
Showing
2 changed files
with
72 additions
and
59 deletions.
There are no files selected for viewing
116 changes: 66 additions & 50 deletions
116
packages/devtools-reps/src/object-inspector/tests/component/__snapshots__/classnames.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 |
---|---|---|
@@ -1,60 +1,76 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`ObjectInspector - classnames has the expected class 1`] = ` | ||
<ObjectInspector | ||
autoExpandDepth={0} | ||
getObjectProperties={[Function]} | ||
loadObjectProperties={[Function]} | ||
roots={ | ||
Array [ | ||
Object { | ||
"contents": Object { | ||
"value": 42, | ||
}, | ||
"name": "root", | ||
"path": "root", | ||
}, | ||
] | ||
} | ||
/> | ||
"<ObjectInspector autoExpandDepth={0} roots={{...}} getObjectProperties={[Function]} loadObjectProperties={[Function]}> | ||
<Tree className=\\"\\" autoExpandAll={true} autoExpandDepth={0} disabledFocus={[undefined]} itemHeight={20} isExpanded={[Function]} focused={{...}} getRoots={[Function]} getParent={[Function]} getChildren={[Function]} getKey={[Function]} onExpand={[Function]} onCollapse={[Function]} onFocus={[Function]} renderItem={[Function]}> | ||
<div className=\\"tree \\" onKeyDown={[Function]} onKeyPress={[Function]} onKeyUp={[Function]} onScroll={[Function]} style={{...}}> | ||
<TreeNode index={0} item={{...}} depth={0} renderItem={[Function]} focused={false} expanded={false} hasChildren={false} onExpand={[Function]} onCollapse={[Function]} onFocus={[Function]}> | ||
<div className=\\"tree-node div \\" onFocus={[Function]} onClick={[Function]} onBlur={[undefined]} style={{...}}> | ||
<div className=\\"node object-node\\" style={{...}} onClick={{...}} onDoubleClick={{...}}> | ||
<span className=\\"object-label\\" onClick={{...}}> | ||
root | ||
</span> | ||
<span className=\\"object-delimiter\\"> | ||
: | ||
</span> | ||
<span className=\\"objectBox objectBox-number\\"> | ||
42 | ||
</span> | ||
</div> | ||
<button style={{...}} /> | ||
</div> | ||
</TreeNode> | ||
</div> | ||
</Tree> | ||
</ObjectInspector>" | ||
`; | ||
exports[`ObjectInspector - classnames has the inline class when inline prop is true 1`] = ` | ||
<ObjectInspector | ||
autoExpandDepth={0} | ||
getObjectProperties={[Function]} | ||
inline={true} | ||
loadObjectProperties={[Function]} | ||
roots={ | ||
Array [ | ||
Object { | ||
"contents": Object { | ||
"value": 42, | ||
}, | ||
"name": "root", | ||
"path": "root", | ||
}, | ||
] | ||
} | ||
/> | ||
"<ObjectInspector autoExpandDepth={0} roots={{...}} getObjectProperties={[Function]} loadObjectProperties={[Function]} inline={true}> | ||
<Tree className=\\"inline\\" autoExpandAll={true} autoExpandDepth={0} disabledFocus={[undefined]} itemHeight={20} isExpanded={[Function]} focused={{...}} getRoots={[Function]} getParent={[Function]} getChildren={[Function]} getKey={[Function]} onExpand={[Function]} onCollapse={[Function]} onFocus={[Function]} renderItem={[Function]}> | ||
<div className=\\"tree inline\\" onKeyDown={[Function]} onKeyPress={[Function]} onKeyUp={[Function]} onScroll={[Function]} style={{...}}> | ||
<TreeNode index={0} item={{...}} depth={0} renderItem={[Function]} focused={false} expanded={false} hasChildren={false} onExpand={[Function]} onCollapse={[Function]} onFocus={[Function]}> | ||
<div className=\\"tree-node div \\" onFocus={[Function]} onClick={[Function]} onBlur={[undefined]} style={{...}}> | ||
<div className=\\"node object-node\\" style={{...}} onClick={{...}} onDoubleClick={{...}}> | ||
<span className=\\"object-label\\" onClick={{...}}> | ||
root | ||
</span> | ||
<span className=\\"object-delimiter\\"> | ||
: | ||
</span> | ||
<span className=\\"objectBox objectBox-number\\"> | ||
42 | ||
</span> | ||
</div> | ||
<button style={{...}} /> | ||
</div> | ||
</TreeNode> | ||
</div> | ||
</Tree> | ||
</ObjectInspector>" | ||
`; | ||
exports[`ObjectInspector - classnames has the nowrap class when disableWrap prop is true 1`] = ` | ||
<ObjectInspector | ||
autoExpandDepth={0} | ||
disableWrap={true} | ||
getObjectProperties={[Function]} | ||
loadObjectProperties={[Function]} | ||
roots={ | ||
Array [ | ||
Object { | ||
"contents": Object { | ||
"value": 42, | ||
}, | ||
"name": "root", | ||
"path": "root", | ||
}, | ||
] | ||
} | ||
/> | ||
"<ObjectInspector autoExpandDepth={0} roots={{...}} getObjectProperties={[Function]} loadObjectProperties={[Function]} disableWrap={true}> | ||
<Tree className=\\"nowrap\\" autoExpandAll={true} autoExpandDepth={0} disabledFocus={[undefined]} itemHeight={20} isExpanded={[Function]} focused={{...}} getRoots={[Function]} getParent={[Function]} getChildren={[Function]} getKey={[Function]} onExpand={[Function]} onCollapse={[Function]} onFocus={[Function]} renderItem={[Function]}> | ||
<div className=\\"tree nowrap\\" onKeyDown={[Function]} onKeyPress={[Function]} onKeyUp={[Function]} onScroll={[Function]} style={{...}}> | ||
<TreeNode index={0} item={{...}} depth={0} renderItem={[Function]} focused={false} expanded={false} hasChildren={false} onExpand={[Function]} onCollapse={[Function]} onFocus={[Function]}> | ||
<div className=\\"tree-node div \\" onFocus={[Function]} onClick={[Function]} onBlur={[undefined]} style={{...}}> | ||
<div className=\\"node object-node\\" style={{...}} onClick={{...}} onDoubleClick={{...}}> | ||
<span className=\\"object-label\\" onClick={{...}}> | ||
root | ||
</span> | ||
<span className=\\"object-delimiter\\"> | ||
: | ||
</span> | ||
<span className=\\"objectBox objectBox-number\\"> | ||
42 | ||
</span> | ||
</div> | ||
<button style={{...}} /> | ||
</div> | ||
</TreeNode> | ||
</div> | ||
</Tree> | ||
</ObjectInspector>" | ||
`; |
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