Skip to content

Commit

Permalink
js: test/unit: Correct German placeholders
Browse files Browse the repository at this point in the history
They were newly translated, use actual values instead of
English fallbacks.
  • Loading branch information
ix5 committed May 23, 2022
1 parent e76907d commit 76504e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions isso/js/tests/unit/postbox-labels-optional.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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)"
Expand Down

0 comments on commit 76504e8

Please sign in to comment.