-
Notifications
You must be signed in to change notification settings - Fork 481
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
Reduce reliance on fnGlobalObject.js
#595
Conversation
This harness function is not necessary in the majority of cases in which it is used. Remove its usage to simplify tests and decrease the amount of domain-specific knowledge necessary to contribute to the test suite. Persist the harness function itself for use by future tests for ES2015 modules (such a helper is necessary for tests that are interpreted as module code).
---*/ | ||
|
||
assert.sameValue(Array.isArray(fnGlobalObject()), false, 'Array.isArray(fnGlobalObject())'); | ||
assert.sameValue(Array.isArray(this), false, 'Array.isArray(fnGlobalObject())'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the assertion message still has the old method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops! I'll update all three assertion messages
a few comments above, the current tests are looking good. we can delete There are some cases declaring a There are some other tests requiring some updates for good. Once again, not in this PR. See #595 (diff) |
I'd rather not--the utility function is still useful for module code, where I agree that it would be good to clean these tests up, and also that it is Thanks for the review! |
That's right, I forgot about it.
My bad I started the code review minutes after I opened this PR (locally first). This message is great. |
LGTM |
Merged as 7f88f29. |
This harness function is not necessary in the majority of cases in which
it is used. Remove its usage to simplify tests and decrease the amount
of domain-specific knowledge necessary to contribute to the test suite.
Persist the harness function itself for use by future tests for ES2015
modules (such a helper is necessary for tests that are interpreted as
module code).
This resolves gh-568