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

Commit

Permalink
[xdl] Fix test failure and add a note about ignored param
Browse files Browse the repository at this point in the history
  • Loading branch information
brentvatne committed Jul 15, 2020
1 parent 81cb78b commit 9ae9772
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/xdl/src/Project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2030,6 +2030,7 @@ function getManifestHandler(projectRoot: string) {

export async function getSignedManifestStringAsync(
manifest: ExpoConfig,
// NOTE: we currently ignore the currentSession that is passed in, see the note below about analytics.

This comment has been minimized.

Copy link
@brentvatne

brentvatne Jul 15, 2020

Author Member

@fson - when you're around can you comment on how we should proceed here, in light of #2357?

currentSession: { sessionSecret: string }
) {
const manifestString = JSON.stringify(manifest);
Expand Down
6 changes: 6 additions & 0 deletions packages/xdl/src/__tests__/Project-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ import { getSignedManifestStringAsync, getUnsignedManifestString } from '../Proj

jest.mock('axios');

jest.mock('../User', () => ({
ensureLoggedInAsync: () => ({
sessionSecret: 'SECRET',
}),
}));

const mockManifest: ExpoConfig = {
name: 'Hello',
slug: 'hello-world',
Expand Down

0 comments on commit 9ae9772

Please sign in to comment.