after( async function () { this.timeout( 30000 ); await driver.executeScript( 'window.localStorage.clear();' ); return await driver.quit(); } );
after(function(done) { //stop remote servers for(var i=0; i<gateways.length; i++) { gateways[i].stop(); } done(); });
after(function(done) { //stop remote server gateway.stop(); done(); });
}); after(function(done) {
describe('person tests', () => { let person; before(() => person = new Person('Alex', '99')); after(() => person = undefined); it('getName', () => { expect(person.getName()).to.equal('Alex'); }); it('getAge', () => { expect(person.getAge()).to.equal('99'); }); });
// Global tear down - runs after all tests in test block/file after(function() { // Write current test context to file helpers.log('Writing test context to storage, ID:"' + testContextId + '" '+localCount) helpers.saveJsonData(testContextId, self.testContext.toJsonObject()) // If any context file specified, save context to it if(contextStorageFile!==null) { helpers.log('Writing test context to file: "' + contextStorageFile + '" '+localCount) helpers.writeJsonFile(self.testContext.toJsonObject(), contextStorageFile) } done(); // Ending after the global after });
after(function () { (console.error as any).restore(); (console.warn as any).restore(); mockHost.stop(); });
after(function() { ipc.disconnect('auth_socket'); ipc.disconnect('nauth_socket'); tcp.stop(); });
after(async () => { await type.delete() await type2.delete() await timelineTemplate.delete() })
after(() => { return minioClient.removeBucket(dummyBucket, function (err: Error) { if (err) { return console.log("Unable to remove bucket: ", err); } return console.log( "Bucket " + dummyBucket + " removed successfully." ); }); })
after(function() { // ensure that micromatch's topics are restored to original var opts = Object.assign({}, original, auth); return topics.put('micromatch/micromatch', opts); });
after(async function () { if (pool) { for (let i = 0; i < createTables.length; i++) { await pool.query(`DROP TABLE IF EXISTS "${createTables[i]}"`); } pool.end(); pool = null; } });
after(async function () { if (pool) { await deleteAllTables(pool); pool.end(); pool = null; } });
after(function () { return myVault.deleteMount({ id: 'pki' }); });
after(function(done) { //stop remote server gateway.stop(); done(); });