Skip to content

Commit

Permalink
add acceptCustomValue in test on custom tags rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
Zedwag committed Jan 29, 2025
1 parent a14207f commit ddfe137
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ QUnit.module('base markup', moduleSetup, () => {
QUnit.test('tagbox should render custom values in tags', function(assert) {
const $element = $('#tagBox')
.dxTagBox({
value: [1, 2]
value: [1, 2],
acceptCustomValue: true,
});

const tags = $element.find('.' + TAGBOX_TAG_CONTENT_CLASS);
Expand All @@ -77,6 +78,7 @@ QUnit.module('base markup', moduleSetup, () => {
QUnit.test('tagElement arguments of tagTemplate for custom tags is correct', function(assert) {
$('#tagBox').dxTagBox({
value: [1, 2],
acceptCustomValue: true,
tagTemplate: function(tagData, tagElement) {
assert.equal(isRenderer(tagElement), !!config().useJQuery, 'tagElement is correct');
}
Expand Down

0 comments on commit ddfe137

Please sign in to comment.