mirror of
https://github.com/c8r/x0.git
synced 2024-10-26 23:21:46 +03:00
Update snapshots
This commit is contained in:
parent
a5bf70ba49
commit
fd632db5d0
@ -4,46 +4,46 @@ The actual snapshot is saved in `static.js.snap`.
|
|||||||
|
|
||||||
Generated by [AVA](https://ava.li).
|
Generated by [AVA](https://ava.li).
|
||||||
|
|
||||||
## static renders
|
|
||||||
|
|
||||||
> Snapshot 1
|
|
||||||
|
|
||||||
`<!DOCTYPE html><html>␊
|
|
||||||
<div id='__APP__'>␊
|
|
||||||
<h1>Hello</h1>␊
|
|
||||||
</div>␊
|
|
||||||
␊
|
|
||||||
␊
|
|
||||||
</html>`
|
|
||||||
|
|
||||||
## static writes
|
|
||||||
|
|
||||||
> Snapshot 1
|
|
||||||
|
|
||||||
`<!DOCTYPE html><html>␊
|
|
||||||
<div id='__APP__'>␊
|
|
||||||
<h1 data-reactroot="">Hello</h1>␊
|
|
||||||
</div>␊
|
|
||||||
<script id='__initial-props__' type='application/json'>{"outDir":"test/output"}</script>␊
|
|
||||||
<script src='/bundle.js'></script>␊
|
|
||||||
</html>
|
|
||||||
|
|
||||||
## static uses getInitialProps method
|
|
||||||
|
|
||||||
> Snapshot 1
|
|
||||||
|
|
||||||
`<!DOCTYPE html><html>␊
|
|
||||||
<div id='__APP__'>␊
|
|
||||||
<h1>Hello</h1>␊
|
|
||||||
</div>␊
|
|
||||||
␊
|
|
||||||
␊
|
|
||||||
</html>
|
|
||||||
|
|
||||||
## static picks up routes config
|
## static picks up routes config
|
||||||
|
|
||||||
> Snapshot 1
|
> Snapshot 1
|
||||||
|
|
||||||
[
|
[
|
||||||
Promise {},
|
Promise {},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
## static renders
|
||||||
|
|
||||||
|
> Snapshot 1
|
||||||
|
|
||||||
|
`<!DOCTYPE html>␊
|
||||||
|
<div id='__APP__'>␊
|
||||||
|
<h1>Hello</h1>␊
|
||||||
|
</div>␊
|
||||||
|
␊
|
||||||
|
␊
|
||||||
|
`
|
||||||
|
|
||||||
|
## static uses getInitialProps method
|
||||||
|
|
||||||
|
> Snapshot 1
|
||||||
|
|
||||||
|
`<!DOCTYPE html>␊
|
||||||
|
<div id='__APP__'>␊
|
||||||
|
<h1>Hello</h1>␊
|
||||||
|
</div>␊
|
||||||
|
␊
|
||||||
|
␊
|
||||||
|
`
|
||||||
|
|
||||||
|
## static writes
|
||||||
|
|
||||||
|
> Snapshot 1
|
||||||
|
|
||||||
|
`<!DOCTYPE html>␊
|
||||||
|
<div id='__APP__'>␊
|
||||||
|
<h1 data-reactroot="">Hello</h1>␊
|
||||||
|
</div>␊
|
||||||
|
<script id='__initial-props__' type='application/json'>{"outDir":"test/output"}</script>␊
|
||||||
|
<script src='/bundle.js'></script>␊
|
||||||
|
`
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user