-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
test: use strictEqual in test fixtures symlinked #10182
Conversation
assert.equal(foo.dep1.bar.version, 'CORRECT_VERSION'); | ||
assert.equal(foo.dep2.bar.version, 'CORRECT_VERSION'); | ||
assert.equal(__filename, linkScriptTarget); | ||
const foo = require('./foo'); |
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.
Can you move this to the top, along with other require
s?
@@ -6,8 +6,8 @@ const path = require('path'); | |||
const linkScriptTarget = path.join(common.fixturesDir, | |||
'/module-require-symlink/symlinked.js'); |
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.
Now that you are changing this file, I would prefer to write this as
path.join(common.fixturesDir, 'module-require-symlink', 'symlinked.js')
Can you please do this as well?
fcae6aa
to
a683ad6
Compare
@thefourtheye just did those changes you requested |
@@ -1,13 +1,13 @@ | |||
'use strict'; | |||
const assert = require('assert'); | |||
const common = require('../../common'); |
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.
This should be the first require
in the tests.
use strictEqual assertions in test fixtures for modules symlinked
a683ad6
to
ace207f
Compare
@thefourtheye did the last change too |
@Fishrock123 it's normal that the bot is trying to add the label on every commit ? |
Landed e467d37 Thanks for the contribution |
- using strictEqual instead equal - common dependency should be the first one - using path.join instead relative path PR-URL: #10182 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Italo A. Casas <[email protected]>
- using strictEqual instead equal - common dependency should be the first one - using path.join instead relative path PR-URL: nodejs#10182 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Italo A. Casas <[email protected]>
- using strictEqual instead equal - common dependency should be the first one - using path.join instead relative path PR-URL: #10182 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Italo A. Casas <[email protected]>
- using strictEqual instead equal - common dependency should be the first one - using path.join instead relative path PR-URL: #10182 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Italo A. Casas <[email protected]>
- using strictEqual instead equal - common dependency should be the first one - using path.join instead relative path PR-URL: #10182 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Italo A. Casas <[email protected]>
- using strictEqual instead equal - common dependency should be the first one - using path.join instead relative path PR-URL: #10182 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Italo A. Casas <[email protected]>
Checklist
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
test
Description of change
use strictEqual assertions in test fixtures for modules symlinked