@inseefr/lunatic 2.4.6-withoutColor → 2.4.7-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -29,9 +29,10 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
29
29
|
label: 'Test Sequence Label',
|
|
30
30
|
style: {
|
|
31
31
|
backgroundColor: 'red'
|
|
32
|
-
}
|
|
33
|
-
questionInformation: 'question-information'
|
|
32
|
+
}
|
|
33
|
+
// questionInformation: 'question-information',
|
|
34
34
|
};
|
|
35
|
+
|
|
35
36
|
(0, _vitest.it)('renders the label and declarations in the correct order', function () {
|
|
36
37
|
var _render = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_lunaticSequence["default"], _objectSpread({}, mockProps))),
|
|
37
38
|
getByText = _render.getByText,
|
|
@@ -39,9 +40,10 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
39
40
|
var sequenceLabel = getByText('Test Sequence Label');
|
|
40
41
|
var declaration1 = getByText('Declaration 1');
|
|
41
42
|
var declaration3 = getByText('Declaration 3');
|
|
42
|
-
|
|
43
|
+
// const questionInformation = getByText('question-information');
|
|
44
|
+
|
|
43
45
|
(0, _vitest.expect)(sequenceLabel).toBeInTheDocument();
|
|
44
|
-
|
|
46
|
+
// expect(questionInformation).toBeInTheDocument();
|
|
45
47
|
// Declarations before text should appear before the label
|
|
46
48
|
(0, _vitest.expect)(declaration1).toBeInTheDocument();
|
|
47
49
|
// expect(sequenceLabel?.previousSibling?.childNodes[0]).toBe(declaration1);
|