454 B
454 B
(Vague) Jasmine 2.0 Goals/(Guidelines)
- No globals!
- jasmine library is entirely inside
jasminenamespace - globals required for backwards compatibility should be added in
boot.js(EG, var describe = jasmine.getCurrentEnv().describe lives in boot.js)
- Don't use properties as getters. Use methods.
- Properties aren't encapsulated -- can be mutated, unsafe.
- Reporters get data objects (no methods).
- easier to refactor as needed