diff options
author | Rebecca Turner <me@re-becca.org> | 2015-06-15 16:39:00 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2015-06-26 03:27:11 +0300 |
commit | a6b1c7922f0dc2e2b3d5a27efdab953808731716 (patch) | |
tree | a6df6988b462288e9de554ad96c2e1a295ca2d01 | |
parent | 3f65d117496c5cee275254a1ab45ab6f7503c410 (diff) |
Update dedupe test to expect new output
-rw-r--r-- | test/tap/dedupe-scoped.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/test/tap/dedupe-scoped.js b/test/tap/dedupe-scoped.js index a093e1f8c..355fc138a 100644 --- a/test/tap/dedupe-scoped.js +++ b/test/tap/dedupe-scoped.js @@ -11,12 +11,11 @@ var modules = join(pkg, 'node_modules') var EXEC_OPTS = { cwd: pkg } -var prolog = 'dedupe@0.0.0 ' + pkg var body = function () {/* -├─┬ first@1.0.0 -│ └── @scope/shared@2.1.6 -└─┬ second@2.0.0 - └── @scope/shared@2.1.6 +- @scope/shared@2.1.6 node_modules/second/node_modules/@scope/shared +@scope/shared@2.1.6 node_modules/first/node_modules/@scope/shared -> node_modules/@scope/shared +secondUnique@1.2.0 node_modules/second/node_modules/secondUnique -> node_modules/secondUnique +firstUnique@0.6.0 node_modules/first/node_modules/firstUnique -> node_modules/firstUnique */}.toString().split('\n').slice(1, -1) var deduper = { @@ -82,7 +81,7 @@ test('dedupe finds the common scoped modules and moves it up one level', functio t.notOk(stderr, 'npm printed no errors') t.same( stdout.trim().split('\n').map(ltrimm), - [prolog].concat(body).map(ltrimm), + body.map(ltrimm), 'got expected output' ) |