Skip to content

Commit

Permalink
Fix migration test expectations.
Browse files Browse the repository at this point in the history
  • Loading branch information
caalador authored and mshabarov committed Sep 17, 2020
1 parent bad8a79 commit 3ff8d7e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,18 +126,18 @@ public void migrateNpmPassesHappyPath() throws MigrationFailureException,
() -> FrontendUtils.getVaadinHomeDirectory().getAbsolutePath());
final List<String> npm = tools.getNpmExecutable();
// Expected execution calls:
// 1 - npm --no-update-notifier --no-audit install polymer-modulizer
// 1 - npm --no-update-notifier --no-audit --scripts-prepend-node-path=true install polymer-modulizer
// 2 - node {tempFolder} i -F --confid.interactive=false -S
// polymer#2.8.0
// 3 - npm --no-update-notifier --no-audit i
// 3 - npm --no-update-notifier --no-audit --scripts-prepend-node-path=true i
// 4 - node node_modules/polymer-modulizer/bin/modulizer.js --force
// --out , --import-style=name

// with .vadin path calls 1 and 3 will get node in the beginning.
if(npm.get(0).contains(".vaadin")) {
migratePassesHappyPath(Stream.of(6, 7, 5, 6).collect(Collectors.toCollection(LinkedList::new)));
migratePassesHappyPath(Stream.of(7, 7, 6, 6).collect(Collectors.toCollection(LinkedList::new)));
} else {
migratePassesHappyPath(Stream.of(5, 7, 4, 6).collect(Collectors.toCollection(LinkedList::new)));
migratePassesHappyPath(Stream.of(6, 7, 5, 6).collect(Collectors.toCollection(LinkedList::new)));
}
}

Expand Down

0 comments on commit 3ff8d7e

Please sign in to comment.