Skip to content

Instantly share code, notes, and snippets.

@ramon-src
Created January 27, 2018 18:03
Show Gist options
  • Save ramon-src/8b504ce46605c8a3cabc5de1546da963 to your computer and use it in GitHub Desktop.
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
<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>
@ramon-src
Copy link
Author

After this must show tdd-green-blue-terminal-1.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment