Skip to content

Commit ce7b0a3

Browse files
remove done from describe
1 parent a5d7f7a commit ce7b0a3

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

test/nodes/core/network/21-httprequest_spec.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2268,7 +2268,7 @@ describe('HTTP Request Node', function() {
22682268
});
22692269
});
22702270

2271-
describe('should parse broken headers', function(done) {
2271+
describe('should parse broken headers', function() {
22722272

22732273
const versions = process.versions.node.split('.')
22742274

@@ -2332,8 +2332,6 @@ describe('HTTP Request Node', function() {
23322332

23332333
});
23342334
});
2335-
} else {
2336-
done()
23372335
}
23382336
});
23392337
});

test/unit/@node-red/editor-api/lib/index_spec.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ describe("api/index", function() {
6161
should.not.exist(api.httpAdmin);
6262
done();
6363
});
64-
describe('initalises admin api without adminAuth', function(done) {
64+
describe('initalises admin api without adminAuth', function() {
6565
before(function() {
6666
beforeEach();
6767
api.init({},{},{},{});
@@ -78,7 +78,7 @@ describe("api/index", function() {
7878
})
7979
});
8080

81-
describe('initalises admin api without editor', function(done) {
81+
describe('initalises admin api without editor', function() {
8282
before(function() {
8383
beforeEach();
8484
api.init({ disableEditor: true },{},{},{});
@@ -95,7 +95,7 @@ describe("api/index", function() {
9595
})
9696
});
9797

98-
describe('initialises api with admin middleware', function(done) {
98+
describe('initialises api with admin middleware', function() {
9999
it('ignores non-function values',function(done) {
100100
api.init({ httpAdminRoot: true, httpAdminMiddleware: undefined },{},{},{});
101101
const middlewareFound = api.httpAdmin._router.stack.filter((layer) => layer.name === 'testMiddleware')
@@ -112,7 +112,7 @@ describe("api/index", function() {
112112
});
113113
});
114114

115-
describe('initialises api with authentication enabled', function(done) {
115+
describe('initialises api with authentication enabled', function() {
116116

117117
it('enables an oauth/openID based authentication mechanism',function(done) {
118118
const stub = sinon.stub(apiAuth, 'genericStrategy').callsFake(function(){});
@@ -135,7 +135,7 @@ describe("api/index", function() {
135135

136136
});
137137

138-
describe('initialises api with custom cors config', function (done) {
138+
describe('initialises api with custom cors config', function () {
139139
const httpAdminCors = {
140140
origin: "*",
141141
methods: "GET,PUT,POST,DELETE"
@@ -156,7 +156,7 @@ describe("api/index", function() {
156156
})
157157
});
158158

159-
describe('editor start', function (done) {
159+
describe('editor start', function () {
160160

161161
it('cannot be started when editor is disabled', function (done) {
162162
const stub = sinon.stub(apiEditor, 'start').callsFake(function () {

0 commit comments

Comments
 (0)