Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Add owner field support to expo start #2329

Merged
merged 2 commits into from
Jul 3, 2020

Conversation

fson
Copy link
Contributor

@fson fson commented Jun 30, 2020

Fixes #2242.

@fson fson requested review from wschurman and dsokal June 30, 2020 21:52
Copy link
Contributor

@dsokal dsokal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just a few inline comments.

export async function getSignedManifestStringAsync(
manifest: ExpoConfig,
currentSession: { sessionSecret: string }
) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
) {
): Promise<string> {

return response;
}

export function getUnsignedManifestString(manifest: ExpoConfig) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export function getUnsignedManifestString(manifest: ExpoConfig) {
export function getUnsignedManifestString(manifest: ExpoConfig): string {

Comment on lines 23 to 27
expect(options.data.args).toEqual({
remoteUsername: mockManifest.owner,
remotePackageName: mockManifest.slug,
});
expect(options.data.manifest).toEqual(mockManifest);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm, it seems a little weird to me that you're calling expect in a mock 🤔 I prefer to call expect only in test cases. Maybe assert would make more sense?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on your feedback, I rewrote the mock so that the custom mock implementation is not needed at all and all the assertions are inside the test case. I think it made the test better, thanks!

@fson fson merged commit 553eb01 into master Jul 3, 2020
@fson fson deleted the @fson/manifest-signing-owner-support branch July 3, 2020 08:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update manifest signing in expo start
2 participants