mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-14 10:35:11 +00:00
always use * as for semver imports
The imported names are very short, so it is helpful to always include semver.
This commit is contained in:
committed by
David Lechner
parent
924cfff539
commit
618f7840da
@@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// Copyright (c) 2021-2022 The Pybricks Authors
|
||||
// Copyright (c) 2021-2023 The Pybricks Authors
|
||||
|
||||
import { lt } from 'semver';
|
||||
import * as semver from 'semver';
|
||||
import { pythonVersionToSemver } from './version';
|
||||
|
||||
describe('pythonVersionToSemver', () => {
|
||||
@@ -21,7 +21,7 @@ describe('pythonVersionToSemver', () => {
|
||||
['v1.0.0c1', 'v1.0.0'],
|
||||
])('%s < %s', (first, second) => {
|
||||
expect(
|
||||
lt(pythonVersionToSemver(first), pythonVersionToSemver(second)),
|
||||
semver.lt(pythonVersionToSemver(first), pythonVersionToSemver(second)),
|
||||
).toBeTruthy();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user