Skip to content
This repository was archived by the owner on May 11, 2021. It is now read-only.

Commit d710236

Browse files
committed
Tests: Make tests run again
Summary: QTip in addExamplesToInput (utils/answer-types.js:53) was crashing several tests. This commit stubs out the jQuery qtip function so that these tests pass again. Test Plan: * run a server (`http-server -p 6060 .`) * run the tests ( http://localhost:6060/test/ ) Auditors: alex
1 parent b8d88c3 commit d710236

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
$.fn.tex.apply(this, arguments);
4343
return this;
4444
};
45+
// Since we have some code that calls qtip executed by tests :(
46+
$.fn.qtip = function() { return "fake qtip"; };
4547
</script>
4648
<script src="../local-only/underscore.js"></script>
4749
<script src="../local-only/kas.js"></script>

0 commit comments

Comments
 (0)