-
Notifications
You must be signed in to change notification settings - Fork 531
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove comment, trailing space and duplicate from tests
- Loading branch information
1 parent
ce3a91c
commit e618253
Showing
25 changed files
with
146 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,20 +39,16 @@ describe("fieldEmail.vue", function() { | |
expect(input).to.be.defined; | ||
expect(input.type).to.be.equal("email"); | ||
expect(input.classList.contains("form-control")).to.be.true; | ||
// expect(input.placeholder).to.be.equal(schema.placeholder); | ||
// expect(input.readOnly).to.be.false; | ||
// expect(input.disabled).to.be.false; | ||
}); | ||
|
||
it("should contain the value", (done) => { | ||
vm.$nextTick( () => { | ||
expect(input.value).to.be.equal("[email protected]"); | ||
expect(input.value).to.be.equal("[email protected]"); | ||
done(); | ||
}); | ||
}); | ||
|
||
describe("check optional attribute", () => { | ||
// name which attributes you want to test and that's it. | ||
let attributes = ["autocomplete", "disabled", "placeholder", "readonly"]; | ||
|
||
attributes.forEach(function(name) { | ||
|
@@ -65,7 +61,7 @@ describe("fieldEmail.vue", function() { | |
it("input value should be the model value after changed", (done) => { | ||
model.email = "[email protected]"; | ||
vm.$nextTick( () => { | ||
expect(input.value).to.be.equal("[email protected]"); | ||
expect(input.value).to.be.equal("[email protected]"); | ||
done(); | ||
}); | ||
|
||
|
@@ -76,7 +72,7 @@ describe("fieldEmail.vue", function() { | |
trigger(input, "input"); | ||
|
||
vm.$nextTick( () => { | ||
expect(model.email).to.be.equal("[email protected]"); | ||
expect(model.email).to.be.equal("[email protected]"); | ||
done(); | ||
}); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.