Skip to content

Commit

Permalink
vue buy now link test
Browse files Browse the repository at this point in the history
  • Loading branch information
Rochmar Nicolas (DevExpress) committed Jun 13, 2024
1 parent 2b9a655 commit 1f11610
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/devextreme-vue/src/core/__tests__/component.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { PatchFlags } from '@vue/shared';
import { mount } from '@vue/test-utils';
import * as events from 'devextreme/events';
import config from 'devextreme/core/config';
import {
App, createVNode, defineComponent, h, nextTick, renderSlot,
} from 'vue';
import { createRouter, createWebHistory } from 'vue-router';

import { pullConfigComponents } from '../children-processing';
import { IWidgetComponent } from '../component';
import globalConfig from '../config';
Expand Down Expand Up @@ -156,6 +156,11 @@ describe('component rendering', () => {
expect(WidgetClass.mock.instances[1]).toEqual({});
});

it('correctly sets the buy now link', () => {
mount(TestComponent);
expect(config().buyNowLink).toBe('https://go.devexpress.com/Licensing_Installer_Watermark_DevExtremeVue.aspx');
});

describe('options', () => {
it('watch prop changing to undefined', (done) => {
const wrapper = mount(TestComponent, {
Expand Down

0 comments on commit 1f11610

Please sign in to comment.