Skip to content

Commit 14b9aef

Browse files
author
Your Name
committed
fix tsc
1 parent 3dc5341 commit 14b9aef

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

coverage/API.ts.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ <h1><a href="index.html">All files</a> API.ts</h1>
403403
<div class='footer quiet pad2 space-top1 center small'>
404404
Code coverage generated by
405405
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
406-
at 2025-07-14T04:55:00.451Z
406+
at 2025-08-02T20:21:56.395Z
407407
</div>
408408
<script src="prettify.js"></script>
409409
<script>

coverage/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ <h1>All files</h1>
116116
<div class='footer quiet pad2 space-top1 center small'>
117117
Code coverage generated by
118118
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
119-
at 2025-07-14T04:55:00.451Z
119+
at 2025-08-02T20:21:56.395Z
120120
</div>
121121
<script src="prettify.js"></script>
122122
<script>

coverage/utils.ts.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ <h1><a href="index.html">All files</a> utils.ts</h1>
139139
<div class='footer quiet pad2 space-top1 center small'>
140140
Code coverage generated by
141141
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
142-
at 2025-07-14T04:55:00.451Z
142+
at 2025-08-02T20:21:56.395Z
143143
</div>
144144
<script src="prettify.js"></script>
145145
<script>

src/__tests__/api.test.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ describe('API module', () => {
1717

1818
describe('getTranslation', () => {
1919
it('should call fetch with correct parameters', async () => {
20-
const source: LangChoice = { name: 'English', code: 'en', targets: [] };
21-
const target: LangChoice = { name: 'Spanish', code: 'es', targets: [] };
20+
const source: LangChoice = { name: 'English', code: 'en', targets: [], history: [] };
21+
const target: LangChoice = { name: 'Spanish', code: 'es', targets: [], history: [] };
2222
const text = 'Hello';
2323

2424
const api = API();
@@ -39,8 +39,8 @@ describe('API module', () => {
3939
});
4040

4141
it('should return parsed response', async () => {
42-
const source: LangChoice = { name: 'English', code: 'en', targets: [] };
43-
const target: LangChoice = { name: 'Spanish', code: 'es', targets: [] };
42+
const source: LangChoice = { name: 'English', code: 'en', targets: [], history: [] };
43+
const target: LangChoice = { name: 'Spanish', code: 'es', targets: [], history: [] };
4444
const text = 'Hello';
4545

4646
const api = API();
@@ -54,8 +54,8 @@ describe('API module', () => {
5454
Promise.reject(new Error('Network error'))
5555
);
5656

57-
const source: LangChoice = { name: 'English', code: 'en', targets: [] };
58-
const target: LangChoice = { name: 'Spanish', code: 'es', targets: [] };
57+
const source: LangChoice = { name: 'English', code: 'en', targets: [], history: [] };
58+
const target: LangChoice = { name: 'Spanish', code: 'es', targets: [], history: [] };
5959
const text = 'Hello';
6060

6161
const api = API();
@@ -79,8 +79,8 @@ describe('API module', () => {
7979
});
8080

8181
it('should call fetch with correct parameters', async () => {
82-
const source: LangChoice = { name: 'English', code: 'en', targets: [] };
83-
const target: LangChoice = { name: 'Spanish', code: 'es', targets: [] };
82+
const source: LangChoice = { name: 'English', code: 'en', targets: [], history: [] };
83+
const target: LangChoice = { name: 'Spanish', code: 'es', targets: [], history: [] };
8484
const text = 'Hello';
8585

8686
const api = API();
@@ -93,8 +93,8 @@ describe('API module', () => {
9393
});
9494

9595
it('should return parsed response with notable words', async () => {
96-
const source: LangChoice = { name: 'English', code: 'en', targets: [] };
97-
const target: LangChoice = { name: 'Spanish', code: 'es', targets: [] };
96+
const source: LangChoice = { name: 'English', code: 'en', targets: [], history: [] };
97+
const target: LangChoice = { name: 'Spanish', code: 'es', targets: [], history: [] };
9898
const text = 'Hello';
9999

100100
const api = API();

0 commit comments

Comments
 (0)