Remove unneeded test after removing unneeded code.

This commit is contained in:
Bryan Mauger 2022-06-27 13:53:08 -04:00
parent 9d77fa4392
commit 74cd46337d

View file

@ -15,7 +15,7 @@ const maska = jest.fn();
describe("textboxQuestion.vue", () => { describe("textboxQuestion.vue", () => {
it("Should render a text input", async () => { it("Should render a text input", async () => {
// Arrange // Arrange
const wrapper = shallowMount(textboxQuestion, { const wrapper = shallowMount(textboxQuestion, {
global: { global: {
directives: { directives: {
@ -53,35 +53,7 @@ describe("textboxQuestion.vue", () => {
expect(label.text()).toContain(questionText); expect(label.text()).toContain(questionText);
}); });
it("Should render the 'questionText' data value with '⁠' after the first character of each word in the label text when disableAutoFill is true.", async () => {
// Arrange
const wrapper = shallowMount(textboxQuestion, {
global: {
directives: {
maska: maska,
}
},
propsData: {
disableAutoFill: true,
},
mixins: [mockMixin]
});
// Mock CMS content ...
// Trust me, the below instance of the string "Question Text" actually has the ⁠ in it. You just can't see it
// Don't believe me? Copy and paste it into Google. Then inspect the search field element in Dev Tools,
// you will see "Q⁠uestion T⁠ext"
const expectedQuestionText = "Question Text";
// Act
const label = wrapper.find("label");
// Assert
expect(label.text()).toContain(expectedQuestionText);
});
it("Should return input id as the id of the input field", async () => { it("Should return input id as the id of the input field", async () => {
// Arrange // Arrange
const wrapper = shallowMount(textboxQuestion, { const wrapper = shallowMount(textboxQuestion, {
@ -103,7 +75,7 @@ describe("textboxQuestion.vue", () => {
expect(input.attributes().id).toEqual("input ID"); expect(input.attributes().id).toEqual("input ID");
}); });
it("Should render the 'questionText' data value as the aria-label attribute.", async () => { it("Should render the 'questionText' data value as the aria-label attribute.", async () => {
// Arrange // Arrange
@ -193,6 +165,6 @@ describe("textboxQuestion.vue", () => {
// Assert // Assert
expect(wrapper.vm.handleChange).toHaveBeenCalled; expect(wrapper.vm.handleChange).toHaveBeenCalled;
}); });
}); });