Skip to content

Commit 1627c71

Browse files
committed
test: attr test to submit field
1 parent 2ed434e commit 1627c71

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

test/unit/specs/fields/fieldSubmit.spec.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* global sinon */
22
import { expect } from "chai";
3-
import { createVueField } from "../util";
3+
import { createVueField, checkAttribute } from "../util";
44

55
import Vue from "vue";
66
import FieldSubmit from "src/fields/fieldSubmit.vue";
@@ -63,6 +63,15 @@ describe("fieldSubmit.vue", function() {
6363
expect(schema.onSubmit.called).to.be.false;
6464
});
6565

66+
describe("check optional attribute", () => {
67+
let attributes = ["inputName"];
68+
69+
attributes.forEach(function(name) {
70+
it("should set " + name, function(done) {
71+
checkAttribute(name, vm, input, field, schema, done);
72+
});
73+
});
74+
});
6675
});
6776

6877
});

0 commit comments

Comments
 (0)