Skip to content

Commit

Permalink
Fix function return values in numInWordsFactory.test.ts and remove tr…
Browse files Browse the repository at this point in the history
…ailing commas in tsconfig.json
  • Loading branch information
ImBIOS committed Apr 1, 2024
1 parent c40f856 commit d4e6332
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions library/src/utils/num-in-words-factory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('numInWordsFactory', () => {

it('should warn when experimental is true', () => {
const lang = 'en';
const fn = () => `one`;
const fn = () => 'one';
const factory = numInWordsFactory(fn, { lang });

factory(1, { experimental: true });
Expand All @@ -49,7 +49,7 @@ describe('numInWordsFactory', () => {

it('should handle experimental false and non-stable status', () => {
const lang = 'en';
const fn = () => `two`;
const fn = () => 'two';
const factory = numInWordsFactory(fn, { lang, status: 'alpha' });

const result = factory(2, {
Expand Down Expand Up @@ -79,7 +79,7 @@ describe('numInWordsFactory', () => {

it('should handle experimental false and default status', () => {
const lang = 'en';
const fn = () => `four`;
const fn = () => 'four';
const factory = numInWordsFactory(fn, { lang });

const result = factory(4, { experimental: false });
Expand Down
10 changes: 5 additions & 5 deletions library/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"forceConsistentCasingInFileNames": true,
"allowJs": true,
"types": [
"bun-types", // add Bun global
"bun-types" // add Bun global
],

"checkJs": true,
Expand All @@ -25,8 +25,8 @@
"noUncheckedIndexedAccess": true,
"baseUrl": ".",
"paths": {
"~/*": ["./src/*"],
},
"~/*": ["./src/*"]
}
},
"include": [
".",
Expand All @@ -36,7 +36,7 @@
"**/*.tsx",
"**/*.cjs",
"**/*.mjs",
"**/*.js",
"**/*.js"
],
"exclude": ["node_modules", "dist"],
"exclude": ["node_modules", "dist"]
}

0 comments on commit d4e6332

Please sign in to comment.