devextreme
Version:
JavaScript/TypeScript Component Suite for Responsive Web Development
47 lines (46 loc) • 1.81 kB
JavaScript
/**
* DevExtreme (cjs/__internal/grids/new/card_view/content_view/content/card/caption.test.js)
* Version: 25.2.8
* Build date: Mon Jun 08 2026
*
* Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
;
var _inferno = require("inferno");
var _globals = require("@jest/globals");
var _caption = require("./caption");
(0, _globals.describe)("Content View", () => {
(0, _globals.describe)("Caption", () => {
(0, _globals.it)("should render title", () => {
const container = document.createElement("div");
(0, _inferno.render)((0, _inferno.createComponentVNode)(2, _caption.Caption, {
field: {
column: {
caption: "TEST_TITLE"
}
}
}), container);
(0, _globals.expect)(container).toMatchSnapshot()
});
(0, _globals.it)("should render template with title", () => {
const container = document.createElement("div");
(0, _inferno.render)((0, _inferno.createComponentVNode)(2, _caption.Caption, {
field: {
column: {
caption: "TEST_TITLE"
}
},
template: _ref => {
let {
field: field
} = _ref;
return (0, _inferno.createVNode)(1, "div", null, field.column.caption, 0, {
"test-template": "true"
})
}
}), container);
(0, _globals.expect)(container).toMatchSnapshot()
})
})
});