Skip to content

Instantly share code, notes, and snippets.

@dhrobbins
Last active August 29, 2015 14:15
Show Gist options
  • Save dhrobbins/d84e41effd38e8e7cac1 to your computer and use it in GitHub Desktop.
Save dhrobbins/d84e41effd38e8e7cac1 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
curl(["domReady!", "QUnit"], function (dom, QUnit) {
// Pause QUnit so you know that Firebase is connected
QUnit.config.autostart = false;
})
.next(["Firebase"])
.next(["QUnit",
"jquery",
"utilsHelpers",
"FirebaseManager",
"scripts/tests/FirebaseManagerEditTopicTests.js"],
function (QUnit, jquery, utilsHelper, FirebaseManager, sutScript) {
var firebaseManager = new FirebaseManager();
firebaseManager.initFirebase(user_id, auth_key);
setTimeout(function () {
// Add this as to window for later use. Connect once and re-use in your tests
window["sutFirebaseManager"] = firebaseManager;
// Now stat the tests
QUnit.start();
}, 2000);
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment