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

Implement ES2015 proxy doubles #42

Merged
merged 3 commits into from
Oct 27, 2015
Merged

Implement ES2015 proxy doubles #42

merged 3 commits into from
Oct 27, 2015

Conversation

searls
Copy link
Member

@searls searls commented Oct 26, 2015

  • split "create" into function and object test doubles. create() is already ambiguous and stood to become even moreso
  • figure out how to get a TDD workflow against firefox
  • implement proxy objects
  • get toString working on objects

Resolves #39

If we add proxy objects it's going to be too damn awkward otherwise

What is a "test double"? is it a function or an object? the correct 
answer should be it could be either, so let's not pretend one is the 
'real' test double and the other is just an object on it or a function
of it
@searls
Copy link
Member Author

searls commented Oct 26, 2015

To run tests in firefox for TDD: TESTEM_BROWSER=firefox npm start

'then' was really problematic, because Mocha 
itself will test for promisey-ness. The only workable 
thing was to allow users to configure which methods are
excluded by a proxy double and to default 'then' among them

Is this a mocha specific hack that will throw users off? Time will tell.
searls added a commit that referenced this pull request Oct 27, 2015
@searls searls merged commit 835aa56 into master Oct 27, 2015
@jasonkarns jasonkarns deleted the add-proxy-objects branch November 18, 2015 14:30
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

Successfully merging this pull request may close these issues.

None yet

1 participant