Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
manzoorwanijk committed Oct 25, 2024
1 parent eb22e78 commit fb77edd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const socialStore = createReduxStore( 'jetpack-social', {
resolvers: {
...sig.resolvers,
},
initialState: getSocialScriptData().store_initial_state,
initialState: getSocialScriptData()?.store_initial_state,
} );

register( socialStore );
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { SocialScriptData } from '../types/types';
* @return {SocialScriptData} The social script data.
*/
export function getSocialScriptData(): SocialScriptData {
return getScriptData().social;
return getScriptData()?.social;
}

/**
Expand Down
1 change: 1 addition & 0 deletions projects/plugins/jetpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"@automattic/jetpack-my-jetpack": "workspace:*",
"@automattic/jetpack-partner-coupon": "workspace:*",
"@automattic/jetpack-publicize-components": "workspace:*",
"@automattic/jetpack-script-data": "workspace:*",
"@automattic/jetpack-shared-extension-utils": "workspace:*",
"@automattic/popup-monitor": "1.0.2",
"@automattic/request-external-access": "1.0.0",
Expand Down

0 comments on commit fb77edd

Please sign in to comment.