Skip to content

Commit 6b78975

Browse files
committed
test: Remove unused populateTranslation mock function
1 parent 016ef82 commit 6b78975

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

packages/firebaseui-react/tests/__mocks__/@firebase-ui/core.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,4 @@ export const countryData = [
5252
];
5353

5454
// Translation helpers
55-
export const getTranslation = vi.fn((section, key) => `${section}.${key}`);
56-
export const populateTranslation = vi.fn((text, data) => {
57-
if (!data) return text;
58-
let result = text;
59-
Object.entries(data).forEach(([key, value]) => {
60-
result = result.replace(new RegExp(`\\{\\{${key}\\}\\}`, "g"), value);
61-
});
62-
return result;
63-
});
55+
export const getTranslation = vi.fn((section, key) => `${section}.${key}`);

pnpm-workspace.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
packages:
2-
- 'packages/*'
3-
- 'packages/angular/projects/*'
4-
- 'examples/*'
2+
- packages/*
3+
- packages/angular/projects/*
4+
- examples/*
5+
onlyBuiltDependencies:
6+
- '@parcel/watcher'
7+
- esbuild
8+
- lmdb
9+
- msgpackr-extract
10+
- protobufjs
11+
- sharp

0 commit comments

Comments
 (0)