MCPcopy Create free account
hub / github.com/dailydotdev/apps / runTest

Function runTest

packages/shared/src/lib/share.spec.ts:110–116  ·  view source on GitHub ↗
(
    params: AddLinkShareLogQueryParams,
    expected: string | undefined,
  )

Source from the content-addressed store, hash-verified

108 const cid = ReferralCampaignKey.SharePost;
109
110 const runTest = (
111 params: AddLinkShareLogQueryParams,
112 expected: string | undefined,
113 ) => {
114 const result = addLogQueryParams(params);
115 expect(result).toEqual(expected);
116 };
117 it('should return link as is if not provided', () => {
118 runTest({ link: undefined, userId, cid }, undefined);
119 });

Callers 1

share.spec.tsFile · 0.85

Calls 1

addLogQueryParamsFunction · 0.90

Tested by

no test coverage detected