Skip to content

Commit 166ee43

Browse files
author
Lionel Bijaoui
committed
Progress on test
1 parent ebf2202 commit 166ee43

File tree

7 files changed

+399
-606
lines changed

7 files changed

+399
-606
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function createField(data, methods, template) {
2727
return _wrapper;
2828
}
2929

30-
describe("abstractField.vue", function() {
30+
describe("abstractField.vue", () => {
3131
describe("check static value", () => {
3232
let schema = {
3333
type: "text",

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import FieldCheckbox from "src/fields/core/fieldCheckbox.vue";
66
const localVue = createLocalVue();
77
let wrapper;
88

9-
function createField2(data, methods) {
9+
function createField(data, methods) {
1010
const _wrapper = mount(FieldCheckbox, {
1111
localVue,
1212
propsData: data,
@@ -26,13 +26,14 @@ describe("FieldCheckbox.vue", () => {
2626
model: "status",
2727
fieldClasses: ["applied-class", "another-class"],
2828
autocomplete: "off",
29-
disabled: false
29+
disabled: false,
30+
inputName: ""
3031
};
3132
let model = { status: true };
3233
let input;
3334

3435
before(() => {
35-
createField2({ schema, model });
36+
createField({ schema, model });
3637
input = wrapper.find("input");
3738
});
3839

@@ -66,7 +67,7 @@ describe("FieldCheckbox.vue", () => {
6667
});
6768

6869
describe("check optional attribute", () => {
69-
let attributes = ["autocomplete", "disabled"];
70+
let attributes = ["autocomplete", "disabled", "inputName"];
7071

7172
attributes.forEach(name => {
7273
it("should set " + name, () => {

0 commit comments

Comments
 (0)