Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Commit 17bc1e2

Browse files
author
Axel Rindle
committed
Code style
1 parent 8584130 commit 17bc1e2

File tree

2 files changed

+21
-27
lines changed

2 files changed

+21
-27
lines changed

test/test-promise-handling.js

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,14 @@ const options = {
88
currentVersion: require('../package.json').version
99
};
1010

11-
describe('github-version-checker', function () {
12-
describe('#versionCheck with one parameter and correct options', function () {
13-
it('should resolve without errors', function (done) {
14-
versionCheck(options)
15-
.then(function (update) {
16-
done();
17-
})
18-
.catch(function (err) {
19-
done(new Error(err));
20-
});
21-
});
11+
describe('#versionCheck with one parameter and correct options', function () {
12+
it('should resolve without errors', function (done) {
13+
versionCheck(options)
14+
.then(function (update) {
15+
done();
16+
})
17+
.catch(function (err) {
18+
done(new Error(err));
19+
});
2220
});
23-
});
21+
});

test/test-return-types.js

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,17 @@ const options = {
88
currentVersion: require('../package.json').version
99
};
1010

11-
describe('github-version-checker', function () {
12-
describe('#versionCheck with two parameters', function () {
13-
it('should return null', function (done) {
14-
assert.equal(versionCheck(options, function(update, err) {
15-
if (err) done(new Error(err));
16-
else done();
17-
}), null)
18-
})
19-
})
11+
describe('#versionCheck with two parameters', function () {
12+
it('should return null', function (done) {
13+
assert.equal(versionCheck(options, function(update, err) {
14+
if (err) done(new Error(err));
15+
else done();
16+
}), null);
17+
});
2018
});
2119

22-
describe('github-version-checker', function () {
23-
describe('#versionCheck with only one options parameter', function () {
24-
it('should return a Promise', function () {
25-
assert.equal(typeof versionCheck(options).then, 'function')
26-
})
27-
})
20+
describe('#versionCheck with only one options parameter', function () {
21+
it('should return a Promise', function () {
22+
assert.equal(typeof versionCheck(options).then, 'function');
23+
});
2824
});

0 commit comments

Comments
 (0)