Created
May 14, 2011 04:59
-
-
Save aconbere/971936 to your computer and use it in GitHub Desktop.
testing node-fake
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
fake = require("fake") | |
var namespace = { x: function () { this.whatever = "skimpy" } } | |
fakeX = fake.create() | |
fakeX.expects(namespace, "X") | |
.andReturns("AASDFASDF") | |
var y = new namespace.X() | |
assert.equal(y, "AASDFASDF") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment