fix: default package to discord.js

This commit is contained in:
iCrawl
2022-07-18 12:21:48 +02:00
parent 3a7e93df57
commit 656e9550db
2 changed files with 6 additions and 3 deletions

View File

@@ -11,8 +11,8 @@ describe('Format Tag', () => {
});
test('GIVEN tag with no prefix THEN return tag', () => {
expect(formatTag('13.5.1')).toEqual({ semver: '13.5.1' });
expect(formatTag('13.7.0')).toEqual({ package: undefined, semver: '13.7.0' });
expect(formatTag('13.5.1')).toEqual({ package: 'discord.js', semver: '13.5.1' });
expect(formatTag('13.7.0')).toEqual({ package: 'discord.js', semver: '13.7.0' });
});
test('GIVEN no or invalid tag THEN return null', () => {