Skip to content

Commit

Permalink
🐛 fix: checkbox readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed May 11, 2016
1 parent ad2c359 commit a3d330e
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions test/unit/specs/fields/fieldCheckbox.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ describe("FieldCheckbox.vue", () => {
let schema = {
type: "checkbox",
label: "Status",
model: "status",
readonly: false
model: "status"
};
let model = { status: true };
let input;
Expand All @@ -36,7 +35,6 @@ describe("FieldCheckbox.vue", () => {

expect(input).to.be.defined;
expect(input.type).to.be.equal("checkbox");
expect(input.readOnly).to.be.false;
expect(input.disabled).to.be.false;
});

Expand All @@ -47,14 +45,6 @@ describe("FieldCheckbox.vue", () => {
});
});

it("should set readOnly", (done) => {
schema.readonly = true;
vm.$nextTick( () => {
expect(input.readOnly).to.be.true;
done();
});
});

it("should set disabled", (done) => {
field.disabled = true;
vm.$nextTick( () => {
Expand Down

0 comments on commit a3d330e

Please sign in to comment.