From ba4be429214cb276b188f9cef4570db7c821fb72 Mon Sep 17 00:00:00 2001 From: Icebob Date: Wed, 15 Feb 2017 13:52:06 +0100 Subject: [PATCH] fixed some test after #120 --- test/unit/specs/VueFormGenerator.spec.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/test/unit/specs/VueFormGenerator.spec.js b/test/unit/specs/VueFormGenerator.spec.js index a00e24bb..10e83b51 100644 --- a/test/unit/specs/VueFormGenerator.spec.js +++ b/test/unit/specs/VueFormGenerator.spec.js @@ -52,7 +52,8 @@ describe("VueFormGenerator.vue", () => { let schema = { fields: [ { - type: "text", + type: "input", + inputType: "text", label: "Name", model: "name", readonly: false, @@ -71,7 +72,7 @@ describe("VueFormGenerator.vue", () => { it("should be minimal classes", () => { expect(group.classList.length).to.be.equal(2); expect(group.classList.contains("form-group")).to.be.true; - expect(group.classList.contains("field-text")).to.be.true; + expect(group.classList.contains("field-input")).to.be.true; }); it("should be featured class", (done) => { @@ -138,7 +139,8 @@ describe("VueFormGenerator.vue", () => { let schema = { fields: [ { - type: "text", + type: "input", + inputType: "text", label: "Name", model: "name", help: null @@ -176,7 +178,8 @@ describe("VueFormGenerator.vue", () => { let schema = { fields: [ { - type: "text", + type: "input", + inputType: "text", label: "Name", model: "name", hint: "Hint text",