aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
* move dictionary files to dictionary folder (#429)StefanVukovic992023-12-23
|
* Add support for alt attribute on structured content images (#359)Stephen Kraus2023-12-23
| | | | | | | | | | | * Add support for alt attribute on structured content images * Add new `alt` property for structured content images * Update test script with new media file count --------- Co-authored-by: stephenmk <stephenmk@users.noreply.github.com>
* Add 出来る/できる as inflections of する (#419)Cashew2023-12-22
| | | | | | | | | | | * Deinflect できる to する * Unit test できる→する deinflection * Deinflect 出来る to する --------- Co-authored-by: Tom Dong <tomtung@users.noreply.github.com>
* Dictionary data tests + write mode (#415)toasted-nutbread2023-12-22
| | | | | | | | | | | | | | | | | | | | | * Rename test * Refactor * Create new dictionary-data.test.js * Move utility functions * Remove old tests * Slight refactor * Add command to rebuild test data * Clarify name * Don't expect in write mode * Ignore config file
* JSON validation (#394)toasted-nutbread2023-12-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Set up JSON testing * Add schema validation * Use parseJson * Finish types * Disambiguate ext/json-schema from node dependency with the same name * Add support for specifying the jsconfig file * Don't expose types * Update types * Use dictionary map type * Fix types * Fix AJV warnings * Move types * Move anb rename file * Move common mocks * Simplify types
* HTML test updates (#398)toasted-nutbread2023-12-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rename y-test to test-case * Rename y-description to test-description * Remove extension name * Update placeholder favicon * Refactor scripts * Make element types more consistent * More updates * Rename * Simplify file URLs * Rename file * Add descriptions * Rename * Rename * Rename
* Template type improvements (#380)toasted-nutbread2023-12-19
| | | | | | | * Default templates to unknown * Default typescript templates to unknown * More template type updates
* Remove TemplateRendererProxy mock (#388)toasted-nutbread2023-12-19
|
* Make JSON.parse usage safer (#373)toasted-nutbread2023-12-19
| | | | | | | | | | | | | | | * Make JSON.parse usage safer * Fix any type * Add readResponseJson * Use readResponseJson * Additional updates * Rename files * Add types
* change *file to *filePath in function parameters (#385)Cashew2023-12-19
| | | | | | | | | * change *file to *filePath * fix merge issues --------- Co-authored-by: Darius Jahandarie <djahandarie@gmail.com>
* Test fixtures (#371)toasted-nutbread2023-12-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Move and rename document-test.js file * Only load HTML file content once * Move testDoc construction * Add createTranslatorTest * Add utilities * Update translator tests * Rename * Refactor anki note builder tests * Refactor * Use internal expect * Updates * Remove actual results * Remove concurrent
* capture all terminators and quotes in the sentence (#360)Cashew2023-12-19
| | | | | | | | | | | | | * capture all terminators and quotes in the sentence * fix negative position, add documents and tests * fix comments giving wrong semantics * add test case coverage * remove cursor namespace for possible performance penalties * while loop optimization
* Replace occurrences of よみちゃん with よみたん (#377)Cashew2023-12-18
|
* Fix Non JP Scanning Option for Kanji Dictionaries (#372)marv2023-12-18
| | | | | | | * Fix non JP scanning option for kanji dictionaries * Fix trailing comma * Add removeNonJapaneseCharacters to test inputs
* Mock updates (#370)toasted-nutbread2023-12-18
| | | | | | | | | * Move DictionaryImporterMediaLoader mock * Move TemplateRendererProxy mock * Simplify mock * Remove ignore rule because it seems unused
* Update eslint spacing rules (#366)toasted-nutbread2023-12-17
| | | | | | | | | * Add space-infix-ops rule * Add no-multi-spaces --------- Co-authored-by: Darius Jahandarie <djahandarie@gmail.com>
* Fix vitest type (#365)toasted-nutbread2023-12-17
|
* Fix DOM tests (#363)toasted-nutbread2023-12-17
| | | | | | | | | | | | | * Only apply eslint rules to .test.js files * Fix tests * Use built-in environment * Fix tests * Optional file name * Remove environment
* Update how ts comments are handledtoasted-nutbread2023-12-04
|
* Fix some import orderingstoasted-nutbread2023-12-03
|
* Update pathstoasted-nutbread2023-11-30
|
* Update typestoasted-nutbread2023-11-29
|
* Update typestoasted-nutbread2023-11-29
|
* Update typestoasted-nutbread2023-11-29
|
* Fix rollup type issuetoasted-nutbread2023-11-29
|
* Update teststoasted-nutbread2023-11-29
|
* Update configtoasted-nutbread2023-11-29
|
* Remove old teststoasted-nutbread2023-11-29
|
* Update typestoasted-nutbread2023-11-29
|
* Revert "Use import map"toasted-nutbread2023-11-27
|
* Update timer types and suchtoasted-nutbread2023-11-27
|
* Use import maptoasted-nutbread2023-11-27
|
* Add JSDoc type annotations to project (rebased)toasted-nutbread2023-11-27
|
* `yomichan` -> `yomitan`starxeras2023-11-10
|
* Change playwright scripts to use ESMDarius Jahandarie2023-11-09
|
* Switch to vitest for ESM support; other fixesDarius Jahandarie2023-11-08
|
* Playwright search wait for input successjbukl2023-11-02
|
* search, anki playwright testsjbukl2023-11-01
| | | | | | prep tests for cicd reorganize exports in playwright utils
* update: pronunciationpraschke2023-10-17
|
* update: hasMedia and getMediapraschke2023-10-17
|
* update: set and getpraschke2023-10-17
|
* fix: formatGlossarypraschke2023-10-17
|
* fix: furigana and furiganaPlainpraschke2023-10-17
|
* initial handlebars patchpraschke2023-10-17
|
* Satisfy no-implicit-button-type lintDarius Jahandarie2023-10-01
|
* fix: typoAustin Siew2023-06-05
|
* Add visual diffing in CIDarius Jahandarie2023-03-23
|
* fixed eslint, changed header to only use 2 spaces, added missing headers to testAustin Siew2023-03-22
|
* DocumentUtil static (#2232)toasted-nutbread2022-09-24
| | | | | | | | | | | | | | | * Make all methods static The two non-static methods are kept for temporary compatibility * Use this instead of class name now that functions are static * Update test * Don't instantiate DocumentUtil * Remove temporary non-static methods * Remove unused global declaration
* Exclude documentElement from zoom calculation (#2227)toasted-nutbread2022-09-20
| | | | | | | | | | | | | | | * Exclude documentElement from zoom calculation * Add an option * Refactor zoom coordinate conversion functions * Convert zoom coordinates for text sources * Rename variable * Convert rect coordinate spaces * Handle shadow DOM