Permalink
Browse files

added .swp file to fixtures to ensure file types other than .js and .…

…coffee don't get run as tests
  • Loading branch information...
caolan committed Sep 20, 2010
1 parent 8c03725 commit 434a42d010710fabfdd706248f8bee8e9a4caeeb
Showing with 8 additions and 4 deletions.
  1. +4 −4 README.md
  2. +4 −0 test/fixtures/dir/.should_not_be_run.js.swp
View
@@ -1,4 +1,4 @@
-nodeunit
+Nodeunit
========
A simple unit testing tool based on the node.js assert module.
@@ -192,7 +192,7 @@ group with its own setUp and tearDown functions.
Running Tests
-------------
-nodeunit comes with a basic command-line test runner, which can be installed
+Nodeunit comes with a basic command-line test runner, which can be installed
using 'sudo make install'. Example usage:
nodeunit testmodule1.js testfolder [...]
@@ -285,10 +285,10 @@ will be prompted to download the submodules for your project.
Writing a Test Runner
---------------------
-nodeunit exports runTest(fn, options), runModule(mod, options) and
+Nodeunit exports runTest(fn, options), runModule(mod, options) and
runFiles(paths, options). You'll most likely want to run test suites from
files, which can be done using the latter function. The _options_ argument can
-contain callbacks which run during testing. nodeunit provides the following
+contain callbacks which run during testing. Nodeunit provides the following
callbacks:
* __moduleStart(name)__ - called before a module is tested
@@ -0,0 +1,4 @@
+var assert = require('assert');
+
+// throw an assertion error if this gets required
+assert.ok(false, 'this module should not be loaded!');

0 comments on commit 434a42d

Please sign in to comment.