Fixing unit test
This commit is contained in:
parent
5989e446de
commit
90b847e72e
2 changed files with 8 additions and 19 deletions
|
|
@ -18,21 +18,6 @@ describe("service-package-radio.vue", () => {
|
|||
expect(outputHtml).toEqual(expect.stringContaining(mockProps["buttonLabel"]));
|
||||
});
|
||||
|
||||
it("Should include buttonLabelAuxillaryCopy in html", async () => {
|
||||
// Arrange
|
||||
let { wrapper } = setupMocks({
|
||||
mountOptionsMockData: {
|
||||
propsData: mockProps,
|
||||
},
|
||||
});
|
||||
|
||||
// Act
|
||||
const outputHtml = wrapper.html();
|
||||
|
||||
// Assert
|
||||
expect(outputHtml).toEqual(expect.stringContaining(mockProps["buttonLabelAuxillaryCopy"]));
|
||||
});
|
||||
|
||||
it("Should include buttonLabelSubCopy in html", async () => {
|
||||
// Arrange
|
||||
let { wrapper } = setupMocks({
|
||||
|
|
@ -123,7 +108,11 @@ const mockProps = {
|
|||
"<ul><li>buttonBodyCopy test copy</li><li>2</li><li>3</li><li>4</li><li>5</li></ul>",
|
||||
buttonFooterCopy: "buttonFooterCopy test copy",
|
||||
buttonAuxillaryCopy: "buttonAuxillaryCopy test copy",
|
||||
additionalButtonData: { strikeThroughPrice: "strikeThroughPrice test copy" },
|
||||
additionalButtonData: {
|
||||
strikeThroughPrice: "strikeThroughPrice test copy",
|
||||
servicePackageDiscount: true,
|
||||
Text: "Special save",
|
||||
},
|
||||
};
|
||||
|
||||
function setupMocks({ mountOptionsMockData = {} }) {
|
||||
|
|
|
|||
|
|
@ -139,8 +139,8 @@ export default {
|
|||
.discount-text {
|
||||
line-height: 36px;
|
||||
display: flex;
|
||||
border-top-left-radius: 4px;
|
||||
border-top-right-radius: 4px;
|
||||
border-top-right-radius: 0.5rem;
|
||||
border-top-left-radius: 0.5rem;
|
||||
background-color: #469d2a;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
|
@ -179,7 +179,7 @@ export default {
|
|||
min-height: 80px;
|
||||
}
|
||||
&.has-text {
|
||||
border-radius: 0;
|
||||
border-radius: 0 0 0.5rem 0.5rem;
|
||||
border: 1px solid #469d2a !important;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue