mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-07-19 09:25:08 +00:00
ServerInteraction: window.crypto is read-only in jsdom; use Object.defineProperty (matching the pattern in CryptTool tests). Also install Buffer-based atob/btoa overrides (common.atob/btoa) to avoid jsdom's strict btoa rejecting binary ciphertext bytes. PasteViewer: the 'displays text according to format' test was already correct — the real fix was clearing 'prettyprinted' in parsePaste(). No test change needed beyond the fix in privatebin.js. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| Alert.js | ||
| AttachmentViewer.js | ||
| Check.js | ||
| compression-sample.txt | ||
| CopyToClipboard.js | ||
| CryptTool.js | ||
| DiscussionViewer.js | ||
| Editor.js | ||
| emailTemplateTest.js | ||
| Helper.js | ||
| I18n.js | ||
| Model.js | ||
| PasteStatus.js | ||
| PasteViewer.js | ||
| Prompt.js | ||
| ServerInteraction.js | ||
| TopNav.js | ||
| UiHelper.js | ||