diff options
author | Adrian Estrada <edsadr@gmail.com> | 2016-12-11 22:37:05 -0500 |
---|---|---|
committer | Italo A. Casas <me@italoacasas.com> | 2016-12-13 16:29:44 -0500 |
commit | e467d37ed98198df385da548b21449b47c2b4a5d (patch) | |
tree | 58b797ddae31f3ddb194a55a13eb4dbff7c4717f | |
parent | 34991be450339c253b22230dca7cb48a08b7009d (diff) | |
download | node-new-e467d37ed98198df385da548b21449b47c2b4a5d.tar.gz |
test: improvements in test fixtures symlinked
- using strictEqual instead equal
- common dependency should be the first one
- using path.join instead relative path
PR-URL: https://github.com/nodejs/node/pull/10182
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Italo A. Casas <me@italoacasas.com>
-rw-r--r-- | test/fixtures/module-require-symlink/symlinked.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/fixtures/module-require-symlink/symlinked.js b/test/fixtures/module-require-symlink/symlinked.js index fea1cedb0a..657ef26626 100644 --- a/test/fixtures/module-require-symlink/symlinked.js +++ b/test/fixtures/module-require-symlink/symlinked.js @@ -1,13 +1,13 @@ 'use strict'; -const assert = require('assert'); const common = require('../../common'); +const assert = require('assert'); +const foo = require('./foo'); const path = require('path'); const linkScriptTarget = path.join(common.fixturesDir, - '/module-require-symlink/symlinked.js'); + 'module-require-symlink', 'symlinked.js'); -var foo = require('./foo'); -assert.equal(foo.dep1.bar.version, 'CORRECT_VERSION'); -assert.equal(foo.dep2.bar.version, 'CORRECT_VERSION'); -assert.equal(__filename, linkScriptTarget); +assert.strictEqual(foo.dep1.bar.version, 'CORRECT_VERSION'); +assert.strictEqual(foo.dep2.bar.version, 'CORRECT_VERSION'); +assert.strictEqual(__filename, linkScriptTarget); assert(__filename in require.cache); |