Application name shouldn't be clickable on an environments page

Fixes #9
This commit is contained in:
Oliver Davies 2019-04-10 12:17:55 +01:00
parent 9d04ebaa84
commit e544595e7c
2 changed files with 8 additions and 7 deletions

View file

@ -1,14 +1,14 @@
import AppBreadcrumb from '@/components/AppBreadcrumb.vue'
import { RouterLinkStub, shallowMount } from '@vue/test-utils'
const stubs = {
const stubs = {
RouterLink: RouterLinkStub
}
test('it returns default values', () => {
const wrapper = shallowMount(AppBreadcrumb, { stubs })
expect(wrapper.vm.selectedOrganisation).toBe('All')
expect(wrapper.vm.selectedOrganisation).toBe(null)
expect(wrapper.vm.selectedApplication).toBe(null)
expect(wrapper.vm.selectedEnvironment).toBe(null)
})
@ -25,7 +25,7 @@ test('it returns the organisation and application names', () => {
expect(wrapper.vm.selectedOrganisation).toBe('Rebuilding Acquia')
expect(wrapper.vm.selectedApplication).toBe('Oliver Davies')
expect(wrapper.vm.selectedEnvironment).toBe('All')
expect(wrapper.vm.selectedEnvironment).toBe(null)
})
test('it returns the environment name', () => {