Skip to content

Commit

Permalink
test: attr test to submit field
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed Sep 26, 2016
1 parent 2ed434e commit 1627c71
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/unit/specs/fields/fieldSubmit.spec.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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);
});
});
});
});

});

0 comments on commit 1627c71

Please sign in to comment.