excalidraw/src/tests
Hampus Lavin 4ac1841d92
test: Add unit tests for package/utils (#3357)
* Update return type to reflect actual signature

* add tests

* Set getDimensions as optional

* add newlines between specs

* remove redundant assertion

* move fixtures to separate files

* Add spacing

* Move tests, add cases

* Add unit tests for package/utils exportToSvg

* extract default object in test

* Move test suite to new file
2021-03-31 17:58:25 +05:30
..
__snapshots__ fix: bail on noop updates for newElementWith (#3279) 2021-03-20 13:29:53 +01:00
fixtures test: Add unit tests for package/utils (#3357) 2021-03-31 17:58:25 +05:30
helpers feat: Add option to flip single element on the context menu (#2520) 2021-03-26 16:45:08 +01:00
packages test: Add unit tests for package/utils (#3357) 2021-03-31 17:58:25 +05:30
queries fix fontFamily state updating (#1679) 2020-05-29 21:59:39 +02:00
scene test: Add unit tests for package/utils (#3357) 2021-03-31 17:58:25 +05:30
align.test.tsx feat: add langCode and renderFooter props (#2644) 2021-01-03 21:51:52 +01:00
appState.test.tsx feat: support pasting file contents & always prefer system clip (#3257) 2021-03-20 20:20:47 +01:00
binding.test.tsx Reduce the maximum size of the binding gap (#2450) 2020-12-09 14:03:25 +01:00
charts.test.tsx improvement: Support numbers with commas in them (#2636) 2020-12-20 14:08:22 +02:00
clients.test.ts Add user list component + snap to user functionality (#1749) 2020-06-19 12:36:49 +02:00
collab.test.tsx fix: Don't share collab types with core (#3353) 2021-03-28 19:26:03 +05:30
dragCreate.test.tsx refactor: rewrite collabWrapper to remove TDZs and simplify (#2834) 2021-01-25 10:47:35 +01:00
excalidrawPackage.test.tsx feat: Add label for name field and use input when editable in export dialog (#3286) 2021-03-20 21:57:58 +05:30
export.test.tsx Factor out collaboration code (#2313) 2020-12-05 15:30:53 +01:00
flip.test.tsx feat: Add option to flip single element on the context menu (#2520) 2021-03-26 16:45:08 +01:00
geometricAlgebra.test.ts Allow binding linear elements to other elements (#1899) 2020-08-08 21:04:15 -07:00
history.test.tsx feat: support pasting file contents & always prefer system clip (#3257) 2021-03-20 20:20:47 +01:00
library.test.tsx Factor out collaboration code (#2313) 2020-12-05 15:30:53 +01:00
move.test.tsx refactor: rewrite collabWrapper to remove TDZs and simplify (#2834) 2021-01-25 10:47:35 +01:00
multiPointCreate.test.tsx refactor: rewrite collabWrapper to remove TDZs and simplify (#2834) 2021-01-25 10:47:35 +01:00
regressionTests.test.tsx feat: Add option to flip single element on the context menu (#2520) 2021-03-26 16:45:08 +01:00
resize.test.tsx refactor: Use arrow function where possible (#3315) 2021-03-29 17:09:20 +03:00
scroll.test.tsx feat: Expose the API to calculate offsets and remove offsetTop and offsetLeft props (#3265) 2021-03-20 13:00:49 +05:30
selection.test.tsx refactor: rewrite collabWrapper to remove TDZs and simplify (#2834) 2021-01-25 10:47:35 +01:00
test-utils.ts fix: Don't share collab types with core (#3353) 2021-03-28 19:26:03 +05:30
utils.test.ts hide fill icons when fill color transparent (#2414) 2020-11-26 21:43:38 +01:00
zindex.test.tsx Factor out collaboration code (#2313) 2020-12-05 15:30:53 +01:00