Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hojberg/js_modularity_experiments
Experiment with file structure
https://github.com/hojberg/js_modularity_experiments
Last synced: 29 days ago
JSON representation
Experiment with file structure
- Host: GitHub
- URL: https://github.com/hojberg/js_modularity_experiments
- Owner: hojberg
- Created: 2011-03-11T17:07:52.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-03-11T23:52:04.000Z (over 13 years ago)
- Last Synced: 2024-04-08T16:43:37.006Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 97.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Unit Testing and MVP for Swipely Frontend
In order to properly unit test the Swipely JavaScript code we need to cut our code into smalller contained pieces. To do so we have been looking at YUI’s sandboxing and module dependency model.
We are going to use YUI and divide our code into “Modules”, “Presenters” and “Models”. Modules are bigger pieces of code that bridge together several Presenters and Models.
Presenters handle Model event updates and propagates that to the DOM. Models are Data close business logic that knows nothing about the DOM.Each of these pieces should be testable separately and combined.
==================================================================
This small application shows how an inviter page would be structured and the tests associated with it.