mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Don't hardcode the version number in a Node.js test
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "libloot-nodejs",
|
||||
"version": "0.0.0",
|
||||
"version": "0.26.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "libloot-nodejs",
|
||||
"version": "0.0.0",
|
||||
"version": "0.26.1",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@napi-rs/cli": "^2.18.4",
|
||||
|
||||
Reference in New Issue
Block a user