Created
January 27, 2018 18:03
-
-
Save ramon-src/8b504ce46605c8a3cabc5de1546da963 to your computer and use it in GitHub Desktop.
After refactoring of expecting an item with status and name in the tests, the component should be refactored too
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
<template> | |
<ul class="service__list"> | |
<li v-for="(service, index) in services" :key="index" | |
class="service__list-item"> | |
<span class="service__list-item-status">{{ service.status }}</span> | |
<span class="service__list-item-name">{{ service.name }}</span> | |
</li> | |
</ul> | |
</template> | |
<script> | |
export default { | |
name: 'service-page', | |
data() { | |
return { | |
services: [ | |
{ name: 'Ramon', status: 'true' } | |
] | |
}; | |
}, | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After this must show tdd-green-blue-terminal-1.png