Add story and tests for login state in BlogLayout
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
import BlogLayout from './BlogLayout'
|
||||
|
||||
export const generated = () => {
|
||||
export const loggedIn = () => {
|
||||
mockCurrentUser({ email: 'rob@redwoodjs.com' })
|
||||
|
||||
return <BlogLayout />
|
||||
}
|
||||
|
||||
export const loggedOut = () => {
|
||||
return <BlogLayout />
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user