Skip to content

Commit

Permalink
issue-3 - Fixed the suggestion of codeclimate
Browse files Browse the repository at this point in the history
  • Loading branch information
bob committed Jan 5, 2018
1 parent b25d43d commit 7217bae
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions examples/todo-mvc/src/knives/todo.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ describe('todos reducer', () => {
});

it('should handle addTodo', () => {
expect(reducer({ list: [] }, action.addTodo({ text: 'Run the tests' })))
expect(reducer({ list: [] }, action.addTodo({ text: 'Run the addTodo tests' })))
.toEqual({
list: [
{
text: 'Run the tests',
text: 'Run the addTodo tests',
completed: false,
id: 0
},
Expand All @@ -38,7 +38,7 @@ describe('todos reducer', () => {
id: 0
},
{
text: 'Run the tests',
text: 'Run the deleteTodo tests',
completed: false,
id: 1
},
Expand All @@ -60,7 +60,7 @@ describe('todos reducer', () => {
expect(reducer({
list: [
{
text: 'Run the tests',
text: 'Run the editTodo tests',
completed: false,
id: 1
}, {
Expand All @@ -70,11 +70,11 @@ describe('todos reducer', () => {
}
],
},
action.editTodo({ text: 'Fix the tests', id: 1 }))
action.editTodo({ text: 'Fix the editTodo tests', id: 1 }))
).toEqual({
list: [
{
text: 'Fix the tests',
text: 'Fix the editTodo tests',
completed: false,
id: 1
}, {
Expand All @@ -90,7 +90,7 @@ describe('todos reducer', () => {
expect(reducer({
list: [
{
text: 'Run the tests',
text: 'Run the completeTodo tests',
completed: false,
id: 1
}, {
Expand All @@ -104,7 +104,7 @@ describe('todos reducer', () => {
).toEqual({
list: [
{
text: 'Run the tests',
text: 'Run the completeTodo tests',
completed: true,
id: 1
}, {
Expand All @@ -120,7 +120,7 @@ describe('todos reducer', () => {
expect(reducer({
list: [
{
text: 'Run the tests',
text: 'Run the completeAll tests',
completed: true,
id: 1
}, {
Expand All @@ -134,7 +134,7 @@ describe('todos reducer', () => {
).toEqual({
list: [
{
text: 'Run the tests',
text: 'Run the completeAll tests',
completed: true,
id: 1
}, {
Expand All @@ -149,7 +149,7 @@ describe('todos reducer', () => {
expect(reducer({
list: [
{
text: 'Run the tests',
text: 'Run the completeAll tests',
completed: true,
id: 1
}, {
Expand All @@ -163,7 +163,7 @@ describe('todos reducer', () => {
).toEqual({
list: [
{
text: 'Run the tests',
text: 'Run the completeAll tests',
completed: false,
id: 1
}, {
Expand All @@ -179,7 +179,7 @@ describe('todos reducer', () => {
expect(reducer({
list: [
{
text: 'Run the tests',
text: 'Run the clearCompleted tests',
completed: true,
id: 1
}, {
Expand Down

0 comments on commit 7217bae

Please sign in to comment.