Skip to content

Commit

Permalink
fixup! chore(backend): Drop pkgVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkl committed Nov 8, 2023
1 parent d03c8a1 commit c9f2381
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/shared/src/__tests__/url.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,10 @@ describe('getScriptUrl', () => {
);
});

it('returns URL using the latest version if clerkJSVersion & pkgVersion is not provided + frontendApi is not staging', () => {
it('returns URL using the latest version if clerkJSVersion is not provided + frontendApi is not staging', () => {
expect(getScriptUrl(frontendApi, {})).toBe('https://foobar.dev/npm/@clerk/clerk-js@latest/dist/clerk.browser.js');
});

it('returns URL using the major version if only pkgVersion is provided', () => {
expect(getScriptUrl(frontendApi, { pkgVersion: '1.2.3' })).toBe(
'https://foobar.dev/npm/@clerk/clerk-js@1/dist/clerk.browser.js',
);
});

it('returns URL using the canary tag if frontendApi is staging', () => {
expect(getScriptUrl('https://foobar.lclstage.dev', {})).toBe(
'https://foobar.lclstage.dev/npm/@clerk/clerk-js@canary/dist/clerk.browser.js',
Expand Down

0 comments on commit c9f2381

Please sign in to comment.