Exemplo testes unitários qunit – Javascript

<!doctype html> <html> <head> <meta charset=”utf-8″> <title>Geral.js</title> <link rel=”stylesheet” href=”http://code.jquery.com/qunit/qunit-2.4.1.css”> <script src=”https://code.jquery.com/jquery-3.0.0.js”></script> <script src=”https://code.jquery.com/jquery-migrate-3.0.1.js”></script> <script src=”http://code.jquery.com/qunit/qunit-2.4.1.js”></script> <script src=”../../sistema/visao/recursos/js/Geral.js”></script> <script> QUnit.test(“variáveis globais”, function (assert) { assert.equal(hoje != undefined && hoje != …