Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invoke callback within object #230

Closed
mattriley opened this issue Apr 16, 2017 · 2 comments
Closed

Invoke callback within object #230

mattriley opened this issue Apr 16, 2017 · 2 comments

Comments

@mattriley
Copy link

mattriley commented Apr 16, 2017

Hi. Is it possible to invoke callbacks nested within an object? The following code doesn't seem to work:

td.when(fileSystemService.exists({ filePath, onTrue: td.callback(), onFalse: td.matchers.isA(Function) })).thenResolve(true);

@searls
Copy link
Member

searls commented Apr 17, 2017

No, that is not supported currently, although it sounds like a worthwhile addition.

@searls
Copy link
Member

searls commented Apr 17, 2017

Going to close, though, unless you plan on implementing

@searls searls closed this as completed Apr 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants