Skip to content

Commit

Permalink
WIP: move to generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMSchmidt committed Jul 11, 2017
1 parent 9750dec commit 39b2598
Show file tree
Hide file tree
Showing 5 changed files with 779 additions and 22 deletions.
3 changes: 2 additions & 1 deletion detox/src/invoke.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ module.exports = {
InvocationManager,
EarlGrey,
IOS: Invoke.genericInvokeObject,
call: Invoke.call
call: Invoke.call,
callDirectly: Invoke.callDirectly
};
10 changes: 9 additions & 1 deletion detox/src/invoke/Invoke.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ function call(target, method, ...args) {
};
}

function callDirectly(json) {
return {
type: 'Invocation',
value: json
};
}

const genericInvokeObject = new Proxy({},
{
get: (target, prop) => {
Expand All @@ -36,5 +43,6 @@ const genericInvokeObject = new Proxy({},

module.exports = {
call,
genericInvokeObject
callDirectly,
genericInvokeObject,
};
Loading

0 comments on commit 39b2598

Please sign in to comment.