Created
January 27, 2018 17:42
-
-
Save ramon-src/9b7c16a4f24359c2b01155bc2c3aff64 to your computer and use it in GitHub Desktop.
Refactoring of tdd-green test now the method was removed and split in two others, expecting an item in the list service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { mount } from 'vue-test-utils'; | |
import ServicePage from '@/components/Service'; | |
describe('ServicePage', () => { | |
it('should show the state from service', () => { | |
const servicePage = mount(ServicePage); | |
expect(servicePage.find('.service__list-item-status').text()).toBe('true'); | |
}); | |
it('should show the name from service', () => { | |
const servicePage = mount(ServicePage); | |
expect(servicePage.find('.service__list-item-name').text()).toBe('Ramon'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment