-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Object with a property called 'version' causes problems in testing #2540
Comments
I don't think this is an issue with Angular CLI. Angular CLI will simply trigger the Karma and this error is even reproducible without usage of |
I don't think @RoopeHakulinen is correct. I get different results running
Notice that Handle2 is displayed in both runs, but Handle1 does not appear for It looks to me like karma has no problem with this, but |
@LMFinney Seems that it was my mistake. I ran the tests again, and now it produces the same result for me. So you are right and this seems like a legit problem. I'll take a look at what happens on the execution. |
Thanks! On Oct 8, 2016 5:25 AM, "Roope Hakulinen" [email protected] wrote:
|
Whoa that's weird. I just tried it with the console logs outside of the constructor, just in |
This method is more reliable than using regexes on the input/output streams. Fix angular#2540
This method is more reliable than using regexes on the input/output streams. Fix angular#2540
This method is more reliable than using regexes on the input/output streams. Fix angular#2540
This method is more reliable than using regexes on the input/output streams. Fix angular#2540
This method is more reliable than using regexes on the input/output streams. Fix angular#2540
This method is more reliable than using regexes on the input/output streams. Fix angular#2540 Close angular#2627
This method is more reliable than using regexes on the input/output streams. Fix angular#2540 Close angular#2627
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS?
Windows 7
Versions.
angular-cli: 1.0.0-beta.16
node: 6.6.0
os: win32 x64
Repro steps.
ng test
The log given by the failure.
No logging - that's the problem.
Mention any other details that might be useful.
The original manifestation of this problem was that I put an object that looks like one of the objects above in an Immutable.js List, but then almost all of the methods on the List failed (i.e.
console.log(list.toArray())
never printed). Eventually, I was able to reproduce it in the simpler form that seemingly just the word "version" as a property name caused problems.This has happened on two machines, one using the chrome launcher and one using the firefox launcher. I don't see the problem by trying to log a similar object literal in the node REPL, the Chrome console, or the Firefox console.
I don't have the problem running the application in the browser - just in the karma test.
The text was updated successfully, but these errors were encountered: