Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "a", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "title": "a", |
@@ -39,4 +39,4 @@ _a_ | ||
var mock = require('a').mock; | ||
original = mock(original); | ||
var mock = require('a').mock(original); | ||
original = mock; | ||
mock.expect().return('fake'); | ||
@@ -57,4 +57,4 @@ | ||
var mock = require('a').mock; | ||
original = mock(); | ||
var mock = require('a').mock(); | ||
original = mock; | ||
mock.expect().return('fake'); | ||
@@ -75,4 +75,4 @@ | ||
var mock = require('a').mock; | ||
original = mock(); | ||
var mock = require('a').mock(); | ||
original = mock; | ||
mock.expect('testValue1').return('fake1'); | ||
@@ -96,4 +96,4 @@ mock.expect('testValue2').return('fake2'); | ||
var mock = require('a').mock; | ||
original = mock(); | ||
var mock = require('a').mock(); | ||
original = mock; | ||
mock.expect('firstArg1', 'secondArg1').return('fake1'); | ||
@@ -116,4 +116,4 @@ mock.expect('firstArg2', 'secondArg2').return('fake2'); | ||
var mock = require('a').mock; | ||
original = mock(); | ||
var mock = require('a').mock(); | ||
original = mock; | ||
mock.expectArray(['a','b']).return('fake1'); | ||
@@ -138,4 +138,4 @@ mock.expectArray(['a','b').return('fake2'); | ||
var mock = require('a').mock; | ||
original = mock(); | ||
var mock = require('a').mock(); | ||
original = mock; | ||
mock.expect().return('fake').repeat(2); | ||
@@ -155,4 +155,4 @@ | ||
var mock = require('a').mock; | ||
original = mock(); | ||
var mock = require('a').mock(); | ||
original = mock; | ||
mock.expect().return('fake').repeatAny(); | ||
@@ -173,4 +173,4 @@ | ||
var mock = require('a').mock; | ||
original = mock(); | ||
var mock = require('a').mock(); | ||
original = mock; | ||
mock.expectAnything().return('fake1'); | ||
@@ -185,2 +185,3 @@ | ||
__strict mock with interceptor__ | ||
``` | ||
@@ -191,4 +192,4 @@ var original = function(arg) { | ||
var mock = require('a').mock; | ||
original = mock(); | ||
var mock = require('a').mock(); | ||
original = mock; | ||
mock.expect('testValue').whenCalled(onCalled).return('fake1'); | ||
@@ -211,4 +212,4 @@ | ||
var mock = require('a').mock; | ||
original = mock(); | ||
var mock = require('a').mock(); | ||
original = mock; | ||
mock.expect('testValue1').return('fake1'); | ||
@@ -228,4 +229,4 @@ mock.expect('testValue2').return('fake2'); | ||
var mock = require('a').mock; | ||
original = mock(); | ||
var mock = require('a').mock(); | ||
original = mock; | ||
mock.expect('testValue1').return('fake1'); | ||
@@ -247,4 +248,4 @@ mock.expect('testValue2').return('fake2'); | ||
var mock = require('a').mock; | ||
original = mock(); | ||
var mock = require('a').mock(); | ||
original = mock; | ||
mock.expect('testValue').expectAnything().whenCalled(onCalled).return('fake1'); | ||
@@ -294,6 +295,6 @@ | ||
``` | ||
var mock = require('a').mock; | ||
var mock = require('a').mock(); | ||
var expectRequire = require('a').expectRequire; | ||
var fakeDep = mock(); | ||
var fakeDep = mock; | ||
expectRequire('./realDep').return(fakeDep); | ||
@@ -300,0 +301,0 @@ |
108616
321