mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-19 17:26:34 +00:00
Convert drive-constraints.spec.ts to typescript
Change-type: patch
This commit is contained in:
parent
e1c3c80c0f
commit
a4e87982a6
@ -50,31 +50,31 @@ export const info = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const compatibility = {
|
export const compatibility = {
|
||||||
sizeNotRecommended() {
|
sizeNotRecommended: () => {
|
||||||
return 'Not Recommended';
|
return 'Not Recommended';
|
||||||
},
|
},
|
||||||
|
|
||||||
tooSmall(additionalSpace: string) {
|
tooSmall: (additionalSpace: string) => {
|
||||||
return `Insufficient space, additional ${additionalSpace} required`;
|
return `Insufficient space, additional ${additionalSpace} required`;
|
||||||
},
|
},
|
||||||
|
|
||||||
locked() {
|
locked: () => {
|
||||||
return 'Locked';
|
return 'Locked';
|
||||||
},
|
},
|
||||||
|
|
||||||
system() {
|
system: () => {
|
||||||
return 'System Drive';
|
return 'System Drive';
|
||||||
},
|
},
|
||||||
|
|
||||||
containsImage() {
|
containsImage: () => {
|
||||||
return 'Drive Mountpoint Contains Image';
|
return 'Drive Mountpoint Contains Image';
|
||||||
},
|
},
|
||||||
|
|
||||||
// The drive is large and therefore likely not a medium you want to write to.
|
// The drive is large and therefore likely not a medium you want to write to.
|
||||||
largeDrive() {
|
largeDrive: () => {
|
||||||
return 'Large Drive';
|
return 'Large Drive';
|
||||||
},
|
},
|
||||||
};
|
} as const;
|
||||||
|
|
||||||
export const warning = {
|
export const warning = {
|
||||||
unrecommendedDriveSize: (
|
unrecommendedDriveSize: (
|
||||||
|
File diff suppressed because it is too large
Load Diff
1629
tests/shared/drive-constraints.spec.ts
Normal file
1629
tests/shared/drive-constraints.spec.ts
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user