Created
January 27, 2018 18:13
-
-
Save ramon-src/8c2c92879d4a1912e8f85246e3eda438 to your computer and use it in GitHub Desktop.
After the first green we do the blue step, to refactor the list to show item with status and name
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 name and the service state', () => { | |
const servicePage = mount(ServicePage); | |
expect(servicePage.find('.service__list-item-status').text()).toBe('true'); | |
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