File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,13 +41,13 @@ Usage
41
41
42
42
Here is an example unit test module:
43
43
44
- exports.testSomething = function(test){
44
+ exports.testSomething = function(test) {
45
45
test.expect(1);
46
46
test.ok(true, "this assertion should pass");
47
47
test.done();
48
48
};
49
49
50
- exports.testSomethingElse = function(test){
50
+ exports.testSomethingElse = function(test) {
51
51
test.ok(false, "this assertion should fail");
52
52
test.done();
53
53
};
@@ -133,7 +133,7 @@ and stubbing is pretty much impossible. One of the nicest things about testing
133
133
in javascript is the ease of doing stubs:
134
134
135
135
var _readFile = fs.readFile;
136
- fs.readFile = function(path, callback){
136
+ fs.readFile = function(path, callback) {
137
137
// it's a stub!
138
138
};
139
139
// test function that uses fs.readFile
You can’t perform that action at this time.
0 commit comments