Commit e4bad0a6 by Valera Rozuvan Committed by Alexander Kryklia

Fixing Jasmine tests.

parent 729d74f1
...@@ -39,14 +39,10 @@ ...@@ -39,14 +39,10 @@
describe('constructor', function () { describe('constructor', function () {
describe('before settings were filled in', function () { describe('before settings were filled in', function () {
it( it(
'when URL setting is empty error message is shown', 'when URL setting is filled form is not submited',
function () { function () {
expect(errorMessage).not.toHaveClass('hidden'); expect($.fn.submit).not.toHaveBeenCalled();
});
it('when URL setting is empty iframe is hidden', function () {
expect(frame).toHaveClass('hidden');
}); });
}); });
...@@ -62,17 +58,6 @@ ...@@ -62,17 +58,6 @@
it('when URL setting is filled form is submited', function () { it('when URL setting is filled form is submited', function () {
expect($.fn.submit).toHaveBeenCalled(); expect($.fn.submit).toHaveBeenCalled();
}); });
it(
'when URL setting is filled error message is hidden',
function () {
expect(errorMessage).toHaveClass('hidden');
});
it('when URL setting is filled iframe is shown', function () {
expect(frame).not.toHaveClass('hidden');
});
}); });
}); });
}); });
......
Markdown is supported
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