Skip to content

Commit

Permalink
feat: update navbar link, fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wilwong89 committed Jan 25, 2024
1 parent 4b13b7c commit cfba26f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/layout/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const { getIsAuthenticated } = storeToRefs(useAuthStore());
<router-link :to="{ name: RouteNames.HOME }">Home</router-link>
</li>
<li v-if="getIsAuthenticated">
<router-link :to="{ name: RouteNames.INITIATIVES }">Submissions</router-link>
<router-link :to="{ name: RouteNames.SUBMISSIONS }">Submissions</router-link>
</li>
</ol>
</template>
Expand Down
2 changes: 1 addition & 1 deletion frontend/tests/unit/components/layout/Navbar.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe('Navbar.vue', () => {
const linkEle = wrapper.findAll('a');
expect(linkEle).toHaveLength(2);
expect(linkEle[0].text()).toBe('Home');
expect(linkEle[1].text()).toBe('Initiatives');
expect(linkEle[1].text()).toBe('Submissions');
});

it('shows correct navbar when false', async () => {
Expand Down

0 comments on commit cfba26f

Please sign in to comment.