first commit

This commit is contained in:
Akhil Gupta
2021-05-29 15:20:50 +05:30
commit d25c30a7b2
194 changed files with 49873 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import MainLayout from './main.vue'
describe('@layouts/main.vue', () => {
it('renders its content', () => {
const slotContent = '<p>Hello!</p>'
const { element } = shallowMount(MainLayout, {
slots: {
default: slotContent,
},
})
expect(element.innerHTML).toContain(slotContent)
})
})

View File

@@ -0,0 +1,14 @@
<script>
import NavBar from '@components/nav-bar.vue'
export default {
components: { NavBar },
}
</script>
<template
><div>
<NavBar />
<div class="section container"> <slot /> </div
></div>
</template>