Skip to content

Commit

Permalink
Add note about separating data and dom logic in whats cookin project
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalikoze committed Nov 30, 2023
1 parent 1fd9945 commit c790dee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions projects/module-2/whats-cookin-part-one.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,11 @@ Instead, for your tests, you should create small, sample datasets that match the
- DOM manipulation / DOM manipulating functions (like `document.querySelector(...)`)
- Fetch calls

<section class="note">
### Note

Make sure to keep your data logic in separate files from the `scripts.js`, such as the `recipes.js` file in the boilerplate. References to the DOM like `querySelectors`, `eventListeners`, and more will break your tests as the DOM does not exist in the testing environment.
</section>
---

### Extension Options
Expand Down

0 comments on commit c790dee

Please sign in to comment.