Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Experiment with file structure

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages