From 1627c71484c9d2957751770d4c6bbacc2393eccb Mon Sep 17 00:00:00 2001 From: Icebob Date: Mon, 26 Sep 2016 22:29:54 +0200 Subject: [PATCH] test: attr test to submit field --- test/unit/specs/fields/fieldSubmit.spec.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test/unit/specs/fields/fieldSubmit.spec.js b/test/unit/specs/fields/fieldSubmit.spec.js index e34b58f5..cb802d66 100644 --- a/test/unit/specs/fields/fieldSubmit.spec.js +++ b/test/unit/specs/fields/fieldSubmit.spec.js @@ -1,6 +1,6 @@ /* global sinon */ import { expect } from "chai"; -import { createVueField } from "../util"; +import { createVueField, checkAttribute } from "../util"; import Vue from "vue"; import FieldSubmit from "src/fields/fieldSubmit.vue"; @@ -63,6 +63,15 @@ describe("fieldSubmit.vue", function() { expect(schema.onSubmit.called).to.be.false; }); + describe("check optional attribute", () => { + let attributes = ["inputName"]; + + attributes.forEach(function(name) { + it("should set " + name, function(done) { + checkAttribute(name, vm, input, field, schema, done); + }); + }); + }); }); }); \ No newline at end of file