Skip to content

Commit

Permalink
fix: add test helper (#6)
Browse files Browse the repository at this point in the history
* fix: add test helper

* push build files [skip ci]

Co-Authored-By: cfl-bot <[email protected]>
  • Loading branch information
SKairinos and cfl-bot authored Jul 24, 2023
1 parent b5562ab commit 1b60256
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/javascript-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 19.7

- name: Setup Git
run: |
git config --local user.name cfl-bot
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 19.7

# TODO: group release dependencies
- name: Install Node Packages
run: npm install --only=dev
Expand Down
1 change: 1 addition & 0 deletions lib/cjs/helpers/general.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ export interface Path {
export declare function path<Subpaths extends Record<string, Path>>(_: string, subpaths?: Subpaths): Path & Subpaths;
export declare function snakeCaseToCamelCase(obj: Record<string, any>): void;
export declare function camelCaseToSnakeCase(obj: Record<string, any>): void;
export declare function hello(name: string): string;
6 changes: 5 additions & 1 deletion lib/cjs/helpers/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var __assign = (this && this.__assign) || function () {
return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.camelCaseToSnakeCase = exports.snakeCaseToCamelCase = exports.path = exports.wrap = exports.openInNewTab = void 0;
exports.hello = exports.camelCaseToSnakeCase = exports.snakeCaseToCamelCase = exports.path = exports.wrap = exports.openInNewTab = void 0;
function openInNewTab(url, target) {
if (target === void 0) { target = '_blank'; }
window.open(url, target);
Expand Down Expand Up @@ -88,3 +88,7 @@ function camelCaseToSnakeCase(obj) {
});
}
exports.camelCaseToSnakeCase = camelCaseToSnakeCase;
function hello(name) {
return "Hello, ".concat(name);
}
exports.hello = hello;
1 change: 1 addition & 0 deletions lib/esm/helpers/general.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ export interface Path {
export declare function path<Subpaths extends Record<string, Path>>(_: string, subpaths?: Subpaths): Path & Subpaths;
export declare function snakeCaseToCamelCase(obj: Record<string, any>): void;
export declare function camelCaseToSnakeCase(obj: Record<string, any>): void;
export declare function hello(name: string): string;
3 changes: 3 additions & 0 deletions lib/esm/helpers/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,6 @@ export function camelCaseToSnakeCase(obj) {
obj[snakeKey] = value;
});
}
export function hello(name) {
return "Hello, ".concat(name);
}
4 changes: 4 additions & 0 deletions src/helpers/general.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,7 @@ export function camelCaseToSnakeCase(obj: Record<string, any>): void {
obj[snakeKey] = value;
});
}

export function hello(name: string): string {
return `Hello, ${name}`;
}

0 comments on commit 1b60256

Please sign in to comment.