-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Added vows' tests: 'grunt test'
Signed-off-by: Christian Roth <christian.roth@port17.de>
Access has been restricted
You have triggered a rate limit.
Please wait a few minutes before you try again;
in some cases this may take up to an hour.
Showing
5 changed files
with
61 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.test | ||
app | ||
doc | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
# node-galerie | ||
|
||
[](https://travis-ci.org/cr0/node-galerie) | ||
# node-galerie [](https://travis-ci.org/cr0/node-galerie) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
vows = require 'vows' | ||
assert = require 'assert' | ||
|
||
vows | ||
.describe('Division by zero') | ||
.addBatch | ||
'when dividing a number by zero': | ||
topic: -> 42/ 0 | ||
|
||
'we get Infinity': (topic) -> | ||
assert.equal topic, Infinity | ||
|
||
'but when dividing zero by zero': | ||
topic: -> 0 / 0 | ||
|
||
'we get a value which': | ||
'is not a number': (topic) -> | ||
assert.isNaN topic | ||
|
||
'is not equal to itself': (topic) -> | ||
assert.notEqual topic, topic | ||
|
||
.export(module) |