You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* added enum for object member types
* prettified error message
* attempt to fix 51 & 45 issues
* receivedProxy.set does same thing as _proxy.set, throwing error like i was doing before was breaking test called "class method received"
* All code from initialState.get except checking that property is special method like "received" moved into Get unitlity, added method initialState.recordedGetPropertyState & initialState.recordedSetPropertyState
* 1. Get, set and apply of Context now expect full list of arguments that that expects same method of proxy. 2. Recording getState on call special method like "received" if disableFor was used on substituted object
* changed 51 issue test, works as supposed to now
* throwing error on calls to setPropertyState.get & setPropertyState.apply
thrownewError('Expected '+(expectedCount===null ? '1 or more' : expectedCount)+' call'+(expectedCount===1 ? '' : 's')+' to the '+type+' '+property.toString()+' with '+stringifyArguments(args)+', but received '+(callCount===0 ? 'none' : callCount)+' of such call'+(callCount===1 ? '' : 's')+'.\nAll calls received to '+type+' '+property.toString()+':'+stringifyCalls(calls));
62
+
thrownewError(
63
+
'Expected '+(expectedCount===null ? '1 or more' : expectedCount)+
64
+
' call'+(expectedCount===1 ? '' : 's')+' to the '+type+' '+property.toString()+
65
+
' with '+stringifyArguments(args)+', but received '+(callCount===0 ? 'none' : callCount)+
66
+
' of such call'+(callCount===1 ? '' : 's')+
67
+
'.\nAll calls received to '+type+' '+property.toString()+':'+stringifyCalls(calls)
0 commit comments