mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-05-17 06:34:45 +00:00
Change Prettier settings (#36)
## Summary I know this is a little tedious but I'd prefer to use the same settings as in Ruff.
This commit is contained in:
parent
1785c7bde0
commit
182c9c7e92
32 changed files with 5536 additions and 5497 deletions
|
@ -1,37 +1,37 @@
|
|||
import {expect, test, it} from '@jest/globals'
|
||||
import { expect, test, it } from "@jest/globals";
|
||||
import {
|
||||
isknownVersion,
|
||||
validateChecksum
|
||||
} from '../../../src/download/checksum/checksum'
|
||||
validateChecksum,
|
||||
} from "../../../src/download/checksum/checksum";
|
||||
|
||||
test('checksum should match', async () => {
|
||||
test("checksum should match", async () => {
|
||||
const validChecksum =
|
||||
'f3da96ec7e995debee7f5d52ecd034dfb7074309a1da42f76429ecb814d813a3'
|
||||
const filePath = '__tests__/fixtures/checksumfile'
|
||||
"f3da96ec7e995debee7f5d52ecd034dfb7074309a1da42f76429ecb814d813a3";
|
||||
const filePath = "__tests__/fixtures/checksumfile";
|
||||
// string params don't matter only test the checksum mechanism, not known checksums
|
||||
await validateChecksum(
|
||||
validChecksum,
|
||||
filePath,
|
||||
'aarch64',
|
||||
'pc-windows-msvc',
|
||||
'1.2.3'
|
||||
)
|
||||
})
|
||||
"aarch64",
|
||||
"pc-windows-msvc",
|
||||
"1.2.3",
|
||||
);
|
||||
});
|
||||
|
||||
type KnownVersionFixture = {version: string; known: boolean}
|
||||
type KnownVersionFixture = { version: string; known: boolean };
|
||||
|
||||
it.each<KnownVersionFixture>([
|
||||
{
|
||||
version: '0.3.0',
|
||||
known: true
|
||||
version: "0.3.0",
|
||||
known: true,
|
||||
},
|
||||
{
|
||||
version: '0.0.15',
|
||||
known: false
|
||||
}
|
||||
version: "0.0.15",
|
||||
known: false,
|
||||
},
|
||||
])(
|
||||
'isknownVersion should return $known for version $version',
|
||||
({version, known}) => {
|
||||
expect(isknownVersion(version)).toBe(known)
|
||||
}
|
||||
)
|
||||
"isknownVersion should return $known for version $version",
|
||||
({ version, known }) => {
|
||||
expect(isknownVersion(version)).toBe(known);
|
||||
},
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue