Squel 1.0.5 with Mocha, Chai and Sinon

less than 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

Leave a Comment