• Blog
  • Archives
  • Code
  • Talks
  • About

Squel 1.0.5 with Mocha, Chai and Sinon

Note: This post is over 2 years old and may now be out of date. Some of the links not work anymore.

(1 minute read)

Today I released version 1.0.5 of Squel, the Javascript SQL query string builder. Apart from new features such as instance cloning and JOINs in DELETEs the main change is the new test suite.

I decided to ditch Vows and opt for Mocha as it doesn't force me to write my tests in the Behaviour-Driven Development (BDD) style. Along with this I'm using Chai, a comprehensive assertion library, and Sinon, an equally comprehensive mocking library. The new test code should be much easier to maintain and modify going forward.

Get it using npm:

$ npm install squel

Homepage: squeljs.org

Github: github.com/hiddentao/squel