Skip to content

Commit 0899839

Browse files
committed
[Tests] pin david to v11
v11.1.0 and v12 no longer work on node 0.10; v11.1.1 should. See alanshaw/david#159
1 parent 73a513c commit 0899839

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/slow/nvm reinstall-packages/should work as expected

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ nvm exec 0.10.29 npm install -g npm@~1.4.11 && nvm install-latest-npm # this is
1010
nvm use 0.10.28
1111
(cd test-npmlink && npm link)
1212

13-
EXPECTED_PACKAGES="autoprefixer bower david grunt-cli grunth-cli http-server jshint marked node-gyp npmlist recursive-blame spawn-sync test-npmlink uglify-js"
13+
EXPECTED_PACKAGES="autoprefixer bower david grunt-cli grunth-cli http-server jshint marked node-gyp npmlist recursive-blame spawn-sync test-npmlink uglify-js yo"
14+
EXPECTED_PACKAGES_INSTALL="autoprefixer bower david@11 grunt-cli grunth-cli http-server jshint marked node-gyp npmlist recursive-blame spawn-sync test-npmlink uglify-js yo@1"
1415

15-
echo "$EXPECTED_PACKAGES yo@1" | sed -e 's/test-npmlink //' | xargs npm install -g --quiet
16+
echo "$EXPECTED_PACKAGES_INSTALL" | sed -e 's/test-npmlink //' | xargs npm install -g --quiet
1617

1718
get_packages() {
1819
npm list -g --depth=0 | \sed -e '1 d' -e 's/^.* \(.*\)@.*/\1/' -e '/^npm$/ d' | xargs
@@ -24,7 +25,7 @@ ORIGINAL_PACKAGES=$(get_packages)
2425
nvm reinstall-packages 0.10.28
2526
FINAL_PACKAGES=$(get_packages)
2627

27-
[ "$FINAL_PACKAGES" = "$EXPECTED_PACKAGES yo" ] || die "final packages ($FINAL_PACKAGES) did not match expected packages ($EXPECTED_PACKAGES)"
28+
[ "$FINAL_PACKAGES" = "$EXPECTED_PACKAGES" ] || die "final packages ($FINAL_PACKAGES) did not match expected packages ($EXPECTED_PACKAGES)"
2829
[ "$ORIGINAL_PACKAGES" != "$FINAL_PACKAGES" ] || die "original packages matched final packages ($ORIGINAL_PACKAGES)"
2930

3031
[ $(test-npmlink) = 'ok' ] || die "failed to run test-npmlink"

0 commit comments

Comments
 (0)