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

Wrong test double name for proxies #112

Closed
mgryszko opened this issue Jun 19, 2016 · 3 comments
Closed

Wrong test double name for proxies #112

mgryszko opened this issue Jun 19, 2016 · 3 comments

Comments

@mgryszko
Copy link
Contributor

Cloned the project - current commit is 4c4c1b7. Then npm run test. Got 2 failures:

  1) td.object creating a proxy object (ES2015; only supported in FF + Edge atm) then this.testDouble.toString() === '[test double object for "Thing"]':
     Error: return value is false
     Expected '[test double object]' to strictly equal '[test double object for "Thing"]'
     Comparison: this.testDouble.toString() === '[test double object for "Thing"]'

  2) td.object creating a proxy object (ES2015; only supported in FF + Edge atm) then this.testDouble.foo.toString() === '[test double for "Thing#foo"]':
     Error: return value is false
     Expected '[test double for "#foo"]' to strictly equal '[test double for "Thing#foo"]'
     Comparison: this.testDouble.foo.toString() === '[test double for "Thing#foo"]'

I'm dropping this error report while I'm trying to investigate why this is happening.

@searls
Copy link
Member

searls commented Jun 19, 2016

Did Node 6 add support for ES Proxy objects? If so it sounds like the error is actually just it working.

On Jun 19, 2016, at 18:30, Marcin Gryszko notifications@github.com wrote:

Cloned the project - current commit is 4c4c1b7. Then npm run test. Got 2 failures:

  1. td.object creating a proxy object (ES2015; only supported in FF + Edge atm) then this.testDouble.toString() === '[test double object for "Thing"]':
    Error: return value is false
    Expected '[test double object]' to strictly equal '[test double object for "Thing"]'
    Comparison: this.testDouble.toString() === '[test double object for "Thing"]'

  2. td.object creating a proxy object (ES2015; only supported in FF + Edge atm) then this.testDouble.foo.toString() === '[test double for "Thing#foo"]':
    Error: return value is false
    Expected '[test double for "#foo"]' to strictly equal '[test double for "Thing#foo"]'
    Comparison: this.testDouble.foo.toString() === '[test double for "Thing#foo"]'
    I'm dropping this error report while I'm trying to investigate why this is happening.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@mgryszko
Copy link
Contributor Author

mgryszko commented Jun 19, 2016

Proxy native support was added in Node 6.0.0.

According to Kangax, Proxy is fully supported in:

  • FF >= 48
  • Chrome >= 51
  • Edge >= 12

Next version of Safari should get the support too.

@mgryszko
Copy link
Contributor Author

PR coming soon

@mgryszko mgryszko changed the title Tests are failing on node 6.2.1 Wrong test double name for proxies Jun 19, 2016
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