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

Commit 916972b

Browse files
author
Axel Rindle
committed
Updated tests again.
1 parent 2549133 commit 916972b

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

examples/callback.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,7 @@ versionCheck(options, function (update, error) {
1919
if (update) {
2020
console.log("An update is available! " + update.tag_name);
2121
console.log("You are on version " + options.currentVersion + "!");
22+
} else {
23+
console.log("You are up to date.");
2224
}
2325
})

examples/promise.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ versionCheck(options).then(function (update) {
1414
if (update) { // update is null if there is no update available, so check here
1515
console.log("An update is available! " + update.tag_name)
1616
console.log("You are on version " + options.currentVersion + "!")
17+
} else {
18+
console.log("You are up to date.");
1719
}
1820
}).catch(function (error) {
1921
console.error(error)

examples/promise_async.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
if (update) { // update is null if there is no update available, so check here
1616
console.log("An update is available! " + update.tag_name)
1717
console.log("You are on version " + options.currentVersion + "!")
18+
} else {
19+
console.log("You are up to date.");
1820
}
1921
} catch (e) {
2022
console.error(e);

0 commit comments

Comments
 (0)