Permalink
Browse files

updated readme/comments to new API

  • Loading branch information...
1 parent fee2e78 commit 06290eec4b32371b38cb8031a6f97283b96317f4 cloudhead committed May 11, 2010
Showing with 6 additions and 7 deletions.
  1. +3 −3 README.md
  2. +3 −4 lib/vows.js
View
@@ -1,7 +1,7 @@
Vows
====
-asynchronous testing for node.js
+> Asynchronous BDD & continuous integration for node.js
introduction
------------
@@ -17,7 +17,7 @@ synopsis
var vows = require('vows'),
assert = require('assert');
- vows.tell('Deep Thought', function () {
+ vows.describe('Deep Thought').addVows(function () {
question('what is the answer to the universe?').addVow(function (answer) {
assert.equals(answer, 42);
}, 'it should know the answer to the ultimate question of life');
@@ -32,7 +32,7 @@ Vows are run as soon as the promise completes, so the order in which they are ru
writing specs
-------------
- vows.tell('A Database library', {
+ vows.describe('A Database library').addVows({
// run this once, and execute the following tests when it completes
topic: function () { return new(DB) },
View
@@ -1,12 +1,11 @@
//
-// Vows.js - asynchronous promise-based testing for node.js
+// Vows.js - asynchronous event-based BDD for node.js
//
// usage:
//
-// var vows = require('vows'),
-// assert = require('assert');
+// var vows = require('vows');
//
-// vows.tell('Deep Thought', function () {
+// vows.describe('Deep Thought').addVows(function () {
// question('what is the answer to the universe?').addVow(function (answer) {
// assert.equals(answer, 42);
// }, 'it should know the answer to the ultimate question of life');

0 comments on commit 06290ee

Please sign in to comment.