Skip to content

Commit 06290ee

Browse files
author
cloudhead
committed
updated readme/comments to new API
1 parent fee2e78 commit 06290ee

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Vows
22
====
33

4-
asynchronous testing for node.js
4+
> Asynchronous BDD & continuous integration for node.js
55
66
introduction
77
------------
@@ -17,7 +17,7 @@ synopsis
1717
var vows = require('vows'),
1818
assert = require('assert');
1919

20-
vows.tell('Deep Thought', function () {
20+
vows.describe('Deep Thought').addVows(function () {
2121
question('what is the answer to the universe?').addVow(function (answer) {
2222
assert.equals(answer, 42);
2323
}, '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
3232
writing specs
3333
-------------
3434

35-
vows.tell('A Database library', {
35+
vows.describe('A Database library').addVows({
3636
// run this once, and execute the following tests when it completes
3737
topic: function () { return new(DB) },
3838

lib/vows.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
//
2-
// Vows.js - asynchronous promise-based testing for node.js
2+
// Vows.js - asynchronous event-based BDD for node.js
33
//
44
// usage:
55
//
6-
// var vows = require('vows'),
7-
// assert = require('assert');
6+
// var vows = require('vows');
87
//
9-
// vows.tell('Deep Thought', function () {
8+
// vows.describe('Deep Thought').addVows(function () {
109
// question('what is the answer to the universe?').addVow(function (answer) {
1110
// assert.equals(answer, 42);
1211
// }, 'it should know the answer to the ultimate question of life');

0 commit comments

Comments
 (0)