steves/node-jira — pull request #15 by tebriel (2013-01-20 19:42:41+00:00)
Title: 0.1.0, Refactoring, Unit Testing

## 0.1.0 ##
Major code refactor, hence the medium version bump. Hopefully stable, works with my enterprise installation of Jira for all of my normal functions I use the library for, passes all the unit tests.

### Refactoring ###

* The Uri is now made from a function instead of the same code repeated each API call, this should make it easier later if authentication or URL structure changes later
* JiraApi now has request scoped locally to the object, this makes unit testing the API calls possible.
* Authentication is now done using Basic Authentication. Using cookie based was causing problems in the API stayed on but dormant for periods of time. Using basic auth (supported by Jira) we can authenticate each call. This removes the extra round trip to log in before calling the requested API function.

### Unit Testing ###

* Though this project is written in JS, Unit Tests are in Coffee-Script. It's a dev dependency now, only if you want to actually run the unit tests.
* Using the jasmine unit testing framework
* Unit tests can be run through grunt with: `grunt jasmine_node`
* Unit tests spy on and intercept the request object's calls, thus preventing the need for a live Jira server (which would really be an integration test anyways).