Skip to content

Commit 01a27e4

Browse files
committed
fix: use single quote
1 parent cb2a274 commit 01a27e4

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/helpers/spaceValidation.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ export async function validateSpaceSettings(
7070
const strategy = getStrategies()[id];
7171

7272
if (!strategy) {
73-
return Promise.reject(`strategy "${id}" is not a valid strategy`);
73+
return Promise.reject(`strategy '${id}' is not a valid strategy`);
7474
}
7575

7676
if (strategy.disabled) {
77-
return Promise.reject(`strategy "${id}" is not available anymore`);
77+
return Promise.reject(`strategy '${id}' is not available anymore`);
7878
}
7979

8080
if (strategy.override && spaceType !== 'turbo') {
81-
return Promise.reject(`strategy "${id}" is only available for pro spaces`);
81+
return Promise.reject(`strategy '${id}' is only available for pro spaces`);
8282
}
8383
}
8484
}

test/unit/helpers/spaceValidation.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ describe('helpers/spaceValidation', () => {
6363

6464
const space = createMockSpace();
6565
await expect(validateSpaceSettings(space, 'mainnet')).rejects.toBe(
66-
'strategy "whitelist" is not a valid strategy'
66+
"strategy 'whitelist' is not a valid strategy"
6767
);
6868
});
6969

@@ -72,7 +72,7 @@ describe('helpers/spaceValidation', () => {
7272

7373
const space = createMockSpace();
7474
await expect(validateSpaceSettings(space, 'mainnet')).rejects.toBe(
75-
'strategy "whitelist" is not available anymore'
75+
"strategy 'whitelist' is not available anymore"
7676
);
7777
});
7878

@@ -90,7 +90,7 @@ describe('helpers/spaceValidation', () => {
9090
});
9191

9292
await expect(validateSpaceSettings(space, 'mainnet')).rejects.toBe(
93-
'strategy "invalid-strategy-1" is not a valid strategy'
93+
"strategy 'invalid-strategy-1' is not a valid strategy"
9494
);
9595
});
9696

@@ -106,7 +106,7 @@ describe('helpers/spaceValidation', () => {
106106
});
107107

108108
await expect(validateSpaceSettings(space, 'mainnet')).rejects.toBe(
109-
'strategy "strategy1" is not available anymore'
109+
"strategy 'strategy1' is not available anymore"
110110
);
111111
});
112112

@@ -122,7 +122,7 @@ describe('helpers/spaceValidation', () => {
122122
});
123123

124124
await expect(validateSpaceSettings(space, 'mainnet')).rejects.toBe(
125-
'strategy "override-strategy" is only available for pro spaces'
125+
"strategy 'override-strategy' is only available for pro spaces"
126126
);
127127
});
128128

0 commit comments

Comments
 (0)