|
|
@@ -1529,13 +1529,14 @@ describe('SSR: renderToString', () => {
|
|
|
data: {
|
|
|
style: {
|
|
|
opacity: 0, // valid, opacity is unit-less
|
|
|
- top: 0, // invalid, top requires unit
|
|
|
+ top: 0, // valid, top requires unit but 0 is allowed
|
|
|
+ left: 10, // invalid, left requires a unit
|
|
|
marginTop: '10px' // valid
|
|
|
}
|
|
|
}
|
|
|
}, result => {
|
|
|
expect(result).toContain(
|
|
|
- '<div data-server-rendered="true" style="opacity:0;margin-top:10px;"></div>'
|
|
|
+ '<div data-server-rendered="true" style="opacity:0;top:0;margin-top:10px;"></div>'
|
|
|
)
|
|
|
done()
|
|
|
})
|