Skip to content

Instantly share code, notes, and snippets.

before(function(done) {
//run asynchronous setup
//tell mocha when you are done
done();
});
//test code
describe('Example Test Suite', function(){
describe('Test the form', function(){
it('starts with empty inputs', function(){
var $username = $("#username"),
$password = $("#password");
expect($username.val()).to.equal('');
CookieJar::~CookieJar()
{
// On destruction, before saving, clear all the session cookies
//purgeSessionCookies();
save();
}
public function tearDown() {
parent::tearDown();
$this->dbh = null;
}
/**
* @test
*/
<phpunit
beStrictAboutTestSize = "true"
timeoutForSmallTests = "1"
timeoutForMediumTests = "50"
timeoutForLargeTests = "50">
var context = function() {};
context.prototype = parentContext;
this.ctx = new context();
<?php
$testRunner = "FunctionalTestRunner.js";
$testFiles = array(
'RegisterTest.js' => array(
'paths' => array(
'/account/register'
),
'useCookies' => true,
class SwiftKIFTestCase: KIFTestCase {
func tester(_ file : String = __FILE__, _ line : Int = __LINE__) -> KIFUITestActor {
return KIFUITestActor(inFile: file, atLine: line, delegate: self)
}
}
public func resApp() -> () {
_initialStoryboard = window!.rootViewController!.storyboard;
for view in self.window!.subviews {
view.removeFromSuperview()
}
let initialScene:UIViewController = _initialStoryboard!.instantiateInitialViewController() as UINavigationController