Update wix plugin check with base test. (#2666)

This commit is contained in:
Andrés N. Robalino 2020-10-13 16:22:49 -05:00 committed by GitHub
parent 194782215f
commit e02b4f1443
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

1
Cargo.lock generated
View file

@ -3140,7 +3140,6 @@ dependencies = [
"nu-errors",
"nu-protocol",
"nu-source",
"nu-test-support",
"num-traits 0.2.12",
]

View file

@ -7,7 +7,12 @@ fn plugins_are_declared_with_wix() {
let actual = nu!(
cwd: ".", pipeline(
r#"
open Cargo.toml | get bin.name | drop | sort-by | wrap cargo | merge {
open Cargo.toml
| get bin.name
| str find-replace "nu_plugin_(extra|core)_(.*)" "nu_plugin_$2"
| drop
| sort-by
| wrap cargo | merge {
open wix/main.wxs --raw | from xml
| get Wix.children.Product.children.0.Directory.children.0
| where Directory.attributes.Id == "$(var.PlatformProgramFilesFolder)"