Skip to content

Commit

Permalink
'ready'
Browse files Browse the repository at this point in the history
  • Loading branch information
Irinova committed Jul 9, 2020
1 parent 42b22b4 commit 0a58338
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
# Todo list (React + typeScript)

Для удобства каждый шаг сделан отдельной веткой:
Перед началом работы необходимо установить все зависимости:
```
npm install
```

##### Шаг 1.

Запустить проект:
```
git checkout step-1
npm start
```
Добавление компонентов NewTask и TasksList.


Итоговый результат:
```
git checkout ready
```



20 changes: 20 additions & 0 deletions src/__tests__/__snapshots__/App.test.tsx.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`<App /> hasn\`t got changes 1`] = `
<Fragment>
<ContextProvider
value={
Object {
"changeState": [Function],
"state": Object {
"newTask": "",
"tasks": Array [],
},
}
}
>
<NewTask />
<TasksList />
</ContextProvider>
</Fragment>
`;
3 changes: 3 additions & 0 deletions src/__tests__/__snapshots__/NewTask.test.tsx.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`<NewTask /> renders the component without changes 1`] = `<NewTask />`;
25 changes: 25 additions & 0 deletions src/__tests__/__snapshots__/TasksList.test.tsx.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`<TasksList /> renders the component without changes 1`] = `
<ContextProvider
value={
Object {
"state": Object {
"newTask": "",
"tasks": Array [
Object {
"isDone": false,
"name": "test",
},
Object {
"isDone": false,
"name": "test2",
},
],
},
}
}
>
<TasksList />
</ContextProvider>
`;

0 comments on commit 0a58338

Please sign in to comment.