Don't hardcode the version number in a Node.js test

This commit is contained in:
Oliver Hamlet
2025-05-10 19:35:59 +01:00
parent 43e9443f10
commit efa678bc81
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import test from 'ava'
import { liblootVersion, isCompatible, Group } from '../index.js'
test('liblootVersion', t => {
t.is(liblootVersion(), "0.26.1")
t.is(liblootVersion(), process.env.npm_package_version)
});
test('isCompatible', t => {