Skip to content

Commit

Permalink
restore utility
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryB432 committed Feb 16, 2024
1 parent b891521 commit 4107ae0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gb-nx/browser",
"version": "8.5.0-alpha.0",
"version": "8.5.0-alpha.1",
"main": "src/index.js",
"repository": {
"type": "git",
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { addAnalytics } from './utilities';

describe('utilities', () => {
test('addAnalytics', () => {
expect(addAnalytics('test')).toEqual('test?utm_source=extension');
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export function addAnalytics(url: string): string {
return url + '?utm_source=extension';
}

export async function sleep(ms: number): Promise<void> {
return new Promise((resolve) => {
setTimeout(resolve, ms);
});
}

0 comments on commit 4107ae0

Please sign in to comment.