Skip to content

Commit

Permalink
add buy now link test jquery
Browse files Browse the repository at this point in the history
  • Loading branch information
Rochmar Nicolas (DevExpress) committed Jun 13, 2024
1 parent 971fd8f commit f6146c8
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,18 @@ describe('license check', () => {
expect(trialPanelSpy).not.toHaveBeenCalled();
});

test.each([
{ token: '', version: '1.0.3' },
{ token: null, version: '1.0.4' },
{ token: undefined, version: '1.0.50' },
{ token: '', version: '1.0.0' },
{ token: null, version: '1.2.4-preview' },
{ token: undefined, version: '1.2' },
])('Buy now link is set correctly', ({ token, version }) => {
validateLicense(token as string, version);
expect(trialPanelSpy?.mock.calls[0][0]).toBe('https://go.devexpress.com/Licensing_Installer_Watermark_DevExtremeJQuery.aspx');
});

test('Message should be logged only once', () => {
validateLicense('', '1.0');
validateLicense('', '1.0');
Expand Down

0 comments on commit f6146c8

Please sign in to comment.