IMPLICIT CONVENTIONS: __ double underscore method prefixes denote private methods _ single underscore method prefixes denote protected methods
RUN:
- open index.html under test/lib/ test folder in a browser and see the output for different sample dates
- open index.html under visa-test root directory in a browser the example will only return the current time in conversational manner
REQUIREMENTS: internet connection as both jQuery and QUnit are pulled in as CDN resources
ASSUMPTIONS:
- The time is reported according to the browser / machine settings without any offsets
TODO:
- Full QUnit test coverage (using Sinon.js for mocks / stubs / spies) is required
- Values in the view layer should be always updated from changes coming from the model only, but don't have time to implement
- Add require js and order plugin for it
- Choose on which is the preferred objects / class structure within the company and refactor as appropriate:
- Object Literal Pattern / Singleton
- Module Pattern
- Constructor Pattern
- Other forms of Classical / Prototypal Inheritance structures TBC