Skip to content

Commit af44f0d

Browse files
committed
clean up
1 parent 6f45e18 commit af44f0d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

examples/tools/items.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const items = [
1919
output: {
2020
path: './src/app/stores/__name__(lowerCase)',
2121
pathAndFileNameDefaultCase: '(kebabCase)',
22-
overwrite: true,
22+
overwrite: false,
2323
},
2424
onComplete: async (results) => {
2525
// console.log(`results`, results);
@@ -53,6 +53,7 @@ const items = [
5353
output: {
5454
path: './src/stores/__store__(kebabCase)',
5555
pathAndFileNameDefaultCase: '(pascalCase)',
56+
overwrite: true,
5657
},
5758
onComplete: (results) => {
5859
console.log(`results`, results);

src/utilities/CheckUtility.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ describe('errorIfTrue', () => {
99

1010
test('should throw an error if input is not a boolean', () => {
1111
expect(errorIfFalse('true' as any, errorString)).toEqual(
12-
new Error("errorIfTrue()'s first argument must be a boolean but argument was of type string")
12+
new Error('errorIfTrue() first argument must be a boolean but argument was of type string')
1313
);
1414
});
1515

src/utilities/CheckUtility.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const isBooleanType = (value: any) => {
1414
*/
1515
export const errorIfFalse = (isError: boolean, errorMessage: string): Error | void => {
1616
if (!isBooleanType(isError)) {
17-
return errorIfFalse(false, `errorIfTrue()'s first argument must be a boolean but argument was of type ${typeof isError}`);
17+
return errorIfFalse(false, `errorIfTrue() first argument must be a boolean but argument was of type ${typeof isError}`);
1818
}
1919

2020
if (!isError) {

0 commit comments

Comments
 (0)