Skip to content

Commit

Permalink
fix(README.md): fix testing section
Browse files Browse the repository at this point in the history
  • Loading branch information
golya committed Dec 13, 2016
1 parent 622a0b3 commit 9b5cbdc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ function execute(elements) {
### EMTs and IMTs should be tested by BDD.
- Driven by user features.
- Do not test control structures (the BDD step should be driven by user feature)

### ET should be tested by TDD.
- Driven by control structures.
- if/else/switch/?
Expand All @@ -264,7 +265,7 @@ it('should calculate the price', () => {
```

- Try to avoid to test a whole data struct, it is fragile.
```
```javascript
// bad
it ('test', () => {
expect(data).toBeEqual({
Expand Down

0 comments on commit 9b5cbdc

Please sign in to comment.