Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
gabaldon committed Aug 28, 2024
1 parent d771032 commit ee01acc
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 3 deletions.
68 changes: 67 additions & 1 deletion src/components/Footer/WFooter.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,73 @@ import WFooter from './WFooter.vue'

describe('WFooter', () => {
it('renders properly', () => {
const wrapper = mount(WFooter)
const wrapper = mount(WFooter, {props: {
footerSections: [
{
title: 'Developers',
links: [
{
url: '#reference',
label: 'reference'
},
{
url: '#randomness',
label: 'randomness'
},
{
url: '#randomness',
label: 'randomness'
},
{
url: '#supported_chains',
label: 'supported_chains'
},
{
url: '#solidity_sdk',
label: 'solidity_sdk'
}
]
},
{
title: 'Ecosystem',
links: [
{
url: '#block_explorer',
label: 'block_explorer'
},
{
url: '#data_feeds_explorer',
label: 'data_feeds_explorer'
},
{
url: '#sheikah',
label: 'sheikah'
},
{
url: '#my_wit_wallet',
label: 'my_wit_wallet'
}
]
},
{
title: 'Learn',
links: [
{
url: '#whitepaper',
label: 'whitepaper'
},
{
url: '#medium',
label: 'medium'
},
{
url: '#tutorials',
label: 'tutorials'
},
]
},
],
}})

expect(wrapper).toMatchSnapshot()
})
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer/WFooter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export type FooterSection = {
title: string,
links: FooterLink[]
}
export type FooterLink = { key: string
export type FooterLink = {
url: string,
label: string
}
Expand Down
1 change: 0 additions & 1 deletion src/components/Navbar/WNavbar.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ describe('WNavbar', () => {
expect(wrapper.html()).toContain('<a href="#build"')
})
it('renders properly pointer icon when active', () => {
console.log(wrapper.html())
expect(wrapper.html()).toContain(`<li class="nav-link"><a href="#build" class="text font-[500] flex cursor-pointer sm:text-white-50 relative p-[8px] m-[-8px] pl-[16px]">
<transition-stub name="fade" appear="false" persisted="false" css="true"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="13" fill="none" viewBox="0 0 12 13" class="w-sm h-auto absolute top-[16px] left-[4px]">
<path fill="#00E2ED" d="M11.17 6.39 5.89 9.44.61 12.48V.29l5.28 3.05z"></path>
Expand Down

0 comments on commit ee01acc

Please sign in to comment.