Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

No more expresso.

I was confused. Tests did run previously, but required expresso. Now we
don't require expresso. This means we have fewer dependencies, which is
good. And since it only added about six lines of code...
  • Loading branch information...
commit 595a0b002cdbb38cf9a64bbc6ad2149c9f0080f3 1 parent 9b841ca
@dhasenan authored
Showing with 1 addition and 2 deletions.
  1. +1 −1  README.md
  2. +0 −1  package.json
View
2  README.md
@@ -13,7 +13,7 @@ MaryJane will create a mock from:
* an object prototype
* a constructor
-It will mock its methods and make a shallow copy of its fields. It will *not* run the constructor, even if you pass a constructor or a prototype. Since JavaScript objects typically get instance fields from the constructor, it's recommended that you pass in a newly constructed instance, such as: `MaryJane.mock(new ClassUnderTest())`. (This usage will call a constructor, but it isn't Mary Jane doing so.)
+It will mock its methods and make a shallow copy of its fields. It will *not* run the constructor, even if you pass a constructor or a prototype. Since JavaScript objects typically get instance fields from the constructor, it's recommended that you pass in a newly constructed instance, such as: `MaryJane.mock(new ClassUnderTest())`. (This usage will call a constructor, but it isn't MaryJane doing so.)
There's not much point in using an object prototype. It's identical to passing the constructor.
View
1  package.json
@@ -9,6 +9,5 @@
"main": "./lib/maryjane.coffee",
"homepage": "https://github.com/dhasenan/maryjane",
"dependencies": { "coffee-script": "*" },
- "devDependencies": { "expresso": "*" }
}
Please sign in to comment.
Something went wrong with that request. Please try again.