This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/tests
Krzysztof Kotlarek bd0b558a89
FIX: paste the spreadsheet to the composer (#11163)
* FIX: paste the spreadsheet to the composer

If we paste spreadsheet with the missing label we receive
`"	this \n1	2"`

If we trim whitespace at the beginning then our later calculation to determine if it is a table is incorrect:

```
      const columns = rows.map((r) => r.split("\t").length);
      const isTable =
        columns.reduce((a, b) => a && columns[0] === b && b > 1)
```

https://meta.discourse.org/t/pasting-from-spreadsheet-wont-work-if-corner-cell-is-empty/169443
2020-11-13 13:01:22 +11:00
..
acceptance FIX: add a way to cancel initialization of new draft (#11106) 2020-11-12 19:13:52 +05:30
fixtures FEATURE: Implement edit functionality for post notices (#11140) 2020-11-11 14:49:53 +02:00
helpers DEV: Move more tests into modules (#11119) 2020-11-05 20:23:28 +01:00
integration FIX: paste the spreadsheet to the composer (#11163) 2020-11-13 13:01:22 +11:00
unit Revert "topic fixup" (#11223) 2020-11-12 15:15:25 -03:00
plugin_tests.js.erb REFACTOR: Move javascript tests inside discourse app 2020-10-02 11:29:36 -04:00
setup-tests.js REFACTOR: Remove window.sinon and window.MouseTrap from tests (#11092) 2020-11-02 11:44:52 +01:00
test_helper.js REFACTOR: Continue to converge on what Ember CLI wants us to do 2020-10-16 10:53:13 -04:00