Skip to content

Commit

Permalink
fix: fixed git tag for np publish
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Nov 26, 2024
1 parent e68a565 commit 1ca4d22
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ const LastCommitLog = require('last-commit-log');

const lastCommitLog = new LastCommitLog();
let hash;
let gitTag;
try {
({ hash, gitTag } = lastCommitLog.getLastCommitSync());
({ hash } = lastCommitLog.getLastCommitSync());
} catch {}

test.beforeEach((t) => {
Expand All @@ -21,6 +20,5 @@ test('returns info', (t) => {
t.is(appInfo.pid, process.pid);
t.is(appInfo.name, 'parse-app-info');
t.is(appInfo.hash, hash);
t.is(appInfo.tag, gitTag);
t.is(appInfo.ip, require('ip').address());
});

0 comments on commit 1ca4d22

Please sign in to comment.