-
Notifications
You must be signed in to change notification settings - Fork 438
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
js: test/unit: Correct German placeholders
They were newly translated, use actual values instead of English fallbacks.
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ test('"(optional)" labels in Postox vanish if require-author/-email set', () => | |
'<div id=isso-thread></div>' + | ||
'<script src="http://isso.api/js/embed.min.js"' | ||
+ 'data-isso="/"' | ||
+ 'data-isso-lang="de"' // falls back to "en" for placeholders | ||
+ 'data-isso-lang="de"' | ||
+ '></script>'; | ||
|
||
const isso = require("app/isso"); | ||
|
@@ -39,8 +39,8 @@ test('"(optional)" labels in Postox vanish if require-author/-email set', () => | |
isso_thread.append('<div id="isso-root"></div>'); | ||
isso_thread.append(new isso.Postbox(null)); | ||
|
||
expect($("#isso-postbox-author").placeholder).toBe('John Doe'); | ||
expect($("#isso-postbox-email").placeholder).toBe('[email protected]'); | ||
expect($("#isso-postbox-author").placeholder).toBe('Max Mustermann'); | ||
expect($("#isso-postbox-email").placeholder).toBe('[email protected]'); | ||
// Instead of "Name (optional)" | ||
expect($("[for='isso-postbox-author']").textContent).toBe('Name'); | ||
// Instead of "E-mail (optional)" | ||
|