Skip to content

Commit a6e17e5

Browse files
committed
test: fix unit tests
1 parent 802e8e6 commit a6e17e5

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

test/tns-appstore-upload.ts

+9-2
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ class AppStore {
7171
return this.iOSPlatformData;
7272
}
7373
},
74+
"applePortalSessionService": {
75+
createUserSession: () => {
76+
return {
77+
areCredentialsValid: true
78+
};
79+
}
80+
}
7481
}
7582
});
7683

@@ -120,8 +127,8 @@ class AppStore {
120127
this.itmsTransporterService.upload = (options: IITMSData) => {
121128
this.itmsTransporterServiceUploadCalls++;
122129
chai.assert.equal(options.ipaFilePath, "/Users/person/git/MyProject/platforms/ios/archive/MyProject.ipa");
123-
chai.assert.equal(options.username, AppStore.itunesconnect.user);
124-
chai.assert.equal(options.password, AppStore.itunesconnect.pass);
130+
chai.assert.equal(options.credentials.username, AppStore.itunesconnect.user);
131+
chai.assert.equal(options.credentials.password, AppStore.itunesconnect.pass);
125132
chai.assert.equal(options.verboseLogging, false);
126133
return Promise.resolve();
127134
};

0 commit comments

Comments
 (0)