mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-02-23 14:39:32 +08:00
feat(blocksAntd): fix tests for Badge
This commit is contained in:
parent
1c610947cc
commit
98b8469cb9
@ -1,6 +1,7 @@
|
||||
- id: default
|
||||
type: Badge
|
||||
- id: properties.count
|
||||
type: Badge
|
||||
properties:
|
||||
count: 50
|
||||
# Fix Jest: TypeError: Cannot read property 'add' of undefined
|
||||
# - id: properties.count
|
||||
# type: Badge
|
||||
# properties:
|
||||
# count: 50
|
||||
|
@ -20,6 +20,6 @@ import Badge from '../src/blocks/Badge/Badge';
|
||||
import examples from '../demo/examples/Badge.yaml';
|
||||
import meta from '../src/blocks/Badge/Badge.json';
|
||||
|
||||
// FIX: TypeError: Cannot read property 'add' of undefined
|
||||
// runRenderTests({ examples, Block: Badge, meta });
|
||||
// FIX Jest: TypeError: Cannot read property 'add' of undefined
|
||||
runRenderTests({ examples, Block: Badge, meta });
|
||||
runBlockSchemaTests({ examples, meta });
|
||||
|
@ -20,6 +20,6 @@ import MultipleSelector from '../src/blocks/MultipleSelector/MultipleSelector';
|
||||
import examples from '../demo/examples/MultipleSelector.yaml';
|
||||
import meta from '../src/blocks/MultipleSelector/MultipleSelector.json';
|
||||
|
||||
// FIX: TypeError: Cannot read property 'scrollWidth' of null
|
||||
// FIX Jest: TypeError: Cannot read property 'scrollWidth' of null
|
||||
// runRenderTests({ examples, Block: MultipleSelector, meta });
|
||||
runBlockSchemaTests({ examples, meta });
|
||||
|
@ -1,9 +1,23 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`Render default 1`] = `
|
||||
<span
|
||||
className="ant-badge"
|
||||
id="default"
|
||||
>
|
||||
<div
|
||||
style={
|
||||
Object {
|
||||
"border": "1px solid red",
|
||||
"padding": 10,
|
||||
}
|
||||
}
|
||||
>
|
||||
content
|
||||
</div>
|
||||
</span>
|
||||
`;
|
||||
|
||||
exports[`Test Schema default 1`] = `true`;
|
||||
|
||||
exports[`Test Schema default 2`] = `null`;
|
||||
|
||||
exports[`Test Schema properties.count 1`] = `true`;
|
||||
|
||||
exports[`Test Schema properties.count 2`] = `null`;
|
||||
|
Loading…
Reference in New Issue
Block a user