Commit bc61f83e authored by Rafael Ostertag's avatar Rafael Ostertag
Browse files

Fixed jasmine tests.

parent 19a315ae
......@@ -24,7 +24,7 @@
<!-- include spec files here... -->
<script src="spec/HelperFunctionListSpec.js"></script>
<script src="spec/ElementFormGroupSpec.js"></script>
<script src="spec/ElementTextSpec.js"></script>
<script src="spec/ElementTextualSpec.js"></script>
<script src="spec/ElementRadioSpec.js"></script>
<script src="spec/ElementSelectSpec.js"></script>
<script src="spec/ElementCheckboxSpec.js"></script>
......
......@@ -19,7 +19,7 @@ describe('Element namespace function getElement()', function () {
it("should get the proper element instance for text", function () {
var element = QfqNS.Element.getElement('personHandle');
expect(element instanceof QfqNS.Element.Text).toBe(true);
expect(element instanceof QfqNS.Element.Textual).toBe(true);
});
it("should get the proper element instance for checkbox", function () {
......
......@@ -16,12 +16,12 @@ describe("Element Text", function () {
beforeAll(function () {
$textInput = $("input[name='personHandle']");
textInput = new QfqNS.Element.Text($textInput);
textInput = new QfqNS.Element.Textual($textInput);
});
it("should throw on wrong type", function () {
expect(function () {
new QfqNS.Element.Text($("input[name='gender']"));
new QfqNS.Element.Textual($("input[name='gender']"));
}).toThrow();
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment