Ejemplo n.º 1
0
 afterEach(function(done) {
     if(nock) {
         nock.cleanAll();
     }
     try {
         helper.unload();
         helper.stopServer(done);
     } catch (e) {
         var errorMessage = "" + e;
         errorMessage.should.be.exactly("Error: Not running");
         done();
     }
 });
Ejemplo n.º 2
0
 afterEach(function(done) {
     if (nock) {
         nock.cleanAll();
     }
     try {
         // TODO @Raminios => Ensure that each test is completely standalone and doesn't rely on execution order so that nock reset could be enabled
         helper.unload();
         helper.stopServer(done);
     } catch (e) {
         var errorMessage = "" + e;
         errorMessage.should.be.exactly("Error: Not running");
         done();
     }
 });
Ejemplo n.º 3
0
 after(function(done) {
     helper.stopServer(done);
 });
Ejemplo n.º 4
0
 afterEach(function(done) {
     helper.unload();
     helper.stopServer(done);
 });
Ejemplo n.º 5
0
 helper.unload().then(function() {
     helper.stopServer(done);
 });
Ejemplo n.º 6
0
 afterEach(function(done) {
     if (nock) { nock.cleanAll(); }
     helper.unload();
     helper.stopServer(done);
 });
Ejemplo n.º 7
0
 helper.unload().then(function() {
     fs.unlinkSync(fileToTail);
     helper.stopServer(done);
 });
Ejemplo n.º 8
0
 }).then(function () {
     RED.settings.nodeMessageBufferMaxLength = 0;
     helper.stopServer(done);
 });