Created
July 9, 2013 01:51
-
-
Save andyperlitch/5954042 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| exports = module.exports = function() { | |
| return "hello"; | |
| } |
This file contains hidden or 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
| exports = module.exports = function() { | |
| return "mock hello"; | |
| } |
This file contains hidden or 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
| var assert = require('assert'); | |
| var moduleA = require('./moduleA'); | |
| describe('moduleA', function() { | |
| it('should return "hello"', function() { | |
| assert.ok(moduleA() === "hello"); | |
| }); | |
| }) |
This file contains hidden or 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
| var moduleA = require('./moduleA'); | |
| exports = module.exports = function() { | |
| return moduleA(); | |
| } |
This file contains hidden or 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
| var assert = require('assert'); | |
| var moduleB = require('./moduleB'); | |
| describe('moduleB', function() { | |
| it('should return whatever A returns', function() { | |
| assert.ok(moduleB() === "hello"); | |
| }); | |
| }) |
This file contains hidden or 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
| require('./moduleA.spec'); | |
| require('./moduleB.spec'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment