1
- import BluebirdPromise from "bluebird-lst"
2
1
import { Arch , Platform } from "electron-builder"
3
2
import { writeFile } from "fs-extra-p"
4
3
import * as path from "path"
@@ -41,7 +40,7 @@ test.ifAll.ifNotCiMac("multi language license", app({
41
40
} ,
42
41
} , {
43
42
projectDirCreated : projectDir => {
44
- return BluebirdPromise . all ( [
43
+ return Promise . all ( [
45
44
writeFile ( path . join ( projectDir , "build" , "license_en.txt" ) , "Hi" ) ,
46
45
writeFile ( path . join ( projectDir , "build" , "license_ru.txt" ) , "Привет" ) ,
47
46
writeFile ( path . join ( projectDir , "build" , "license_ko.txt" ) , "Привет" ) ,
@@ -61,7 +60,7 @@ test.ifAll.ifNotCiMac("html license", app({
61
60
} ,
62
61
} , {
63
62
projectDirCreated : projectDir => {
64
- return BluebirdPromise . all ( [
63
+ return Promise . all ( [
65
64
writeFile ( path . join ( projectDir , "build" , "license.html" ) , '<html><body><p>Hi <a href="https://google.com" target="_blank">google</a></p></body></html>' ) ,
66
65
] )
67
66
} ,
@@ -93,7 +92,7 @@ test.ifDevOrLinuxCi("perMachine, no run after finish", app({
93
92
} ,
94
93
} , {
95
94
projectDirCreated : projectDir => {
96
- return BluebirdPromise . all ( [
95
+ return Promise . all ( [
97
96
copyTestAsset ( "headerIcon.ico" , path . join ( projectDir , "build" , "foo test space.ico" ) ) ,
98
97
copyTestAsset ( "license.txt" , path . join ( projectDir , "build" , "license.txt" ) ) ,
99
98
] )
@@ -117,15 +116,15 @@ test.ifNotCiMac("installerHeaderIcon", () => {
117
116
} , {
118
117
projectDirCreated : projectDir => {
119
118
headerIconPath = path . join ( projectDir , "build" , "installerHeaderIcon.ico" )
120
- return BluebirdPromise . all ( [ copyTestAsset ( "headerIcon.ico" , headerIconPath ) , copyTestAsset ( "headerIcon.ico" , path . join ( projectDir , "build" , "uninstallerIcon.ico" ) ) ] )
119
+ return Promise . all ( [ copyTestAsset ( "headerIcon.ico" , headerIconPath ) , copyTestAsset ( "headerIcon.ico" , path . join ( projectDir , "build" , "uninstallerIcon.ico" ) ) ] )
121
120
}
122
121
}
123
122
)
124
123
} )
125
124
126
125
test . ifDevOrLinuxCi ( "custom include" , ( ) => assertPack ( "test-app-one" , { targets : nsisTarget } , {
127
126
projectDirCreated : projectDir => copyTestAsset ( "installer.nsh" , path . join ( projectDir , "build" , "installer.nsh" ) ) ,
128
- packed : context => BluebirdPromise . all ( [
127
+ packed : context => Promise . all ( [
129
128
assertThat ( path . join ( context . projectDir , "build" , "customHeader" ) ) . isFile ( ) ,
130
129
assertThat ( path . join ( context . projectDir , "build" , "customInit" ) ) . isFile ( ) ,
131
130
assertThat ( path . join ( context . projectDir , "build" , "customInstall" ) ) . isFile ( ) ,
0 commit comments