MCPcopy
hub / github.com/docmirror/dev-sidecar / testIsNewVersion

Function testIsNewVersion

packages/core/test/versionTest.js:4–8  ·  view source on GitHub ↗
(onlineVersion, currentVersion, expected)

Source from the content-addressed store, hash-verified

2const { isNewVersion } = require('../src/utils/util.version.js')
3
4function testIsNewVersion (onlineVersion, currentVersion, expected) {
5 const ret = isNewVersion(onlineVersion, currentVersion)
6 console.log(ret >= 0 ? ` ${ret}` : `${ret}`)
7 assert.strictEqual(ret, expected)
8}
9
10testIsNewVersion('2.0.0', '2.0.0', 0)
11

Callers 1

versionTest.jsFile · 0.85

Calls 2

isNewVersionFunction · 0.85
logMethod · 0.80

Tested by

no test coverage detected