Last active
August 29, 2015 14:21
-
-
Save dantman/2cbf5e299d58b822d8db to your computer and use it in GitHub Desktop.
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
"use strict"; | |
var contrivedFoo = require('./contrivedFoo'); | |
contrivedFoo.foo(); |
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
"use strict"; | |
exports.bar = bar; | |
var contrivedFoo = require('./contrivedFoo'); | |
function bar() { | |
return contrivedFoo.contrived + 'bar'; | |
} |
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
"use strict"; | |
exports.id = 0; | |
exports.contrived = 'foo'; | |
exports.foo = foo; | |
var contrivedBar = require('./contrivedBar'); | |
function foo() { | |
exports.id++; | |
return { | |
id: exports.id, | |
bar: contrivedBar.bar() | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment