Skip to content

Commit 1c115c8

Browse files
committed
fix: Fix tests that broke from write language expansion
1 parent a4e95be commit 1c115c8

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
### Fixed
9+
- Fix write tests that broke from language expansion
810

911
## [1.25.0] - 2026-03-26
1012
### Added

tests/rephraseText.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,27 +34,27 @@ describe('rephrase text', () => {
3434
const deeplClient = makeDeeplClient();
3535
const deeplClientPromise = deeplClient.rephraseText(
3636
exampleText.de,
37-
'es',
37+
'ja',
3838
null,
3939
WritingTone.CONFIDENT,
4040
);
4141
await expect(deeplClientPromise).rejects.toBeInstanceOf(Error);
4242
await expect(deeplClientPromise).rejects.toThrow(
43-
/Language Spanish does not support setting a tone/,
43+
/Language ja does not support setting a tone/,
4444
);
4545
});
4646

47-
it('should throw an error for invalid writing_style parameter', async () => {
47+
it('should throw an error for unsupported writing_style parameter', async () => {
4848
const deeplClient = makeDeeplClient();
4949
const deeplClientPromise = deeplClient.rephraseText(
5050
exampleText.de,
51-
'es',
51+
'ja',
5252
WritingStyle.BUSINESS,
5353
null,
5454
);
5555
await expect(deeplClientPromise).rejects.toBeInstanceOf(Error);
5656
await expect(deeplClientPromise).rejects.toThrow(
57-
/Language Spanish does not support setting a writing style/,
57+
/Language ja does not support setting a writing style/,
5858
);
5959
});
6060

0 commit comments

Comments
 (0)