1- import BluebirdPromise from "bluebird-lst"
21import { Arch , Platform } from "electron-builder"
32import { writeFile } from "fs-extra-p"
43import * as path from "path"
@@ -41,7 +40,7 @@ test.ifAll.ifNotCiMac("multi language license", app({
4140 } ,
4241} , {
4342 projectDirCreated : projectDir => {
44- return BluebirdPromise . all ( [
43+ return Promise . all ( [
4544 writeFile ( path . join ( projectDir , "build" , "license_en.txt" ) , "Hi" ) ,
4645 writeFile ( path . join ( projectDir , "build" , "license_ru.txt" ) , "Привет" ) ,
4746 writeFile ( path . join ( projectDir , "build" , "license_ko.txt" ) , "Привет" ) ,
@@ -61,7 +60,7 @@ test.ifAll.ifNotCiMac("html license", app({
6160 } ,
6261} , {
6362 projectDirCreated : projectDir => {
64- return BluebirdPromise . all ( [
63+ return Promise . all ( [
6564 writeFile ( path . join ( projectDir , "build" , "license.html" ) , '<html><body><p>Hi <a href="https://google.com" target="_blank">google</a></p></body></html>' ) ,
6665 ] )
6766 } ,
@@ -93,7 +92,7 @@ test.ifDevOrLinuxCi("perMachine, no run after finish", app({
9392 } ,
9493} , {
9594 projectDirCreated : projectDir => {
96- return BluebirdPromise . all ( [
95+ return Promise . all ( [
9796 copyTestAsset ( "headerIcon.ico" , path . join ( projectDir , "build" , "foo test space.ico" ) ) ,
9897 copyTestAsset ( "license.txt" , path . join ( projectDir , "build" , "license.txt" ) ) ,
9998 ] )
@@ -117,15 +116,15 @@ test.ifNotCiMac("installerHeaderIcon", () => {
117116 } , {
118117 projectDirCreated : projectDir => {
119118 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" ) ) ] )
121120 }
122121 }
123122 )
124123} )
125124
126125test . ifDevOrLinuxCi ( "custom include" , ( ) => assertPack ( "test-app-one" , { targets : nsisTarget } , {
127126 projectDirCreated : projectDir => copyTestAsset ( "installer.nsh" , path . join ( projectDir , "build" , "installer.nsh" ) ) ,
128- packed : context => BluebirdPromise . all ( [
127+ packed : context => Promise . all ( [
129128 assertThat ( path . join ( context . projectDir , "build" , "customHeader" ) ) . isFile ( ) ,
130129 assertThat ( path . join ( context . projectDir , "build" , "customInit" ) ) . isFile ( ) ,
131130 assertThat ( path . join ( context . projectDir , "build" , "customInstall" ) ) . isFile ( ) ,
0 commit comments