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

Commit 80dfc7a

Browse files
committed
Add test for tags
1 parent d5c479b commit 80dfc7a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

test/test-tags.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// require modules
2+
/** @type {import('ava').TestInterface} */
3+
const test = require('ava');
4+
const versionCheck = require('../');
5+
6+
test('fetching tags returns a more lightweight schema', async t => {
7+
const update = await versionCheck({
8+
token: null,
9+
owner: 'axelrindle',
10+
repo: 'github-version-checker',
11+
currentVersion: '0.0.1',
12+
fetchTags: true
13+
});
14+
15+
t.truthy(update);
16+
t.is(Object.keys(update).length, 1);
17+
t.is(Object.keys(update)[0], 'name');
18+
});

0 commit comments

Comments
 (0)