Commit graph

19 commits

Author SHA1 Message Date
Merlijn Vos
ecec3d3213
Split Plugin into BasePlugin and extended UIPlugin (#2944) 2021-06-18 13:23:16 +02:00
Kevin van Zonneveld
764c2ccada
Update Linter (#2796)
* relocate .vscode

* Switch to transloadit linter

* Update .eslintrc.json

* autofix code

* unlink and install eslint-config-transloadit@1.1.1

* Change 0 to "off"

* Don't change 'use strict'

* Do not vertically align

* disable key-spacing

* add import/no-extraneous-dependencies per package

* add more react/a11y warnings

* Revert "autofix code"

This reverts commit 14c8a8cde8.

* add import/no-extraneous-dependencies per example and main package

* autofix code (2)

* Allow devDependencies in ./bin

* Change import/no-extraneous-dependencies to warn again

* upgrade linter

* Set import/no-extraneous-dependencies to warn
2021-03-15 16:25:17 +00:00
Renée Kooi
72689d01ac
Export Plugin class from @uppy/core. 2018-06-28 12:20:21 +02:00
Renée Kooi
d494e7df3c
Unit test fixes. 2018-06-18 15:49:59 +02:00
Renée Kooi
16d0d4253a
Move Plugin class to @uppy/core package.
Steps taken:

```bash
git mv src/core/Plugin.js packages/@uppy/core/src
vim packages/@uppy/core/src/index.test.js # Update require
sed -i 's/[./]*\/core\/Plugin/@uppy\/core\/lib\/Plugin/' src/**/*.js
vim test/mocks/* # manually update require() calls
vim website/src/docs/writing-plugins.md # manually update require() calls
```
2018-06-14 16:31:19 +02:00
Renée Kooi
5884904fbc
Use CommonJS in test files 2018-03-19 10:48:36 +01:00
Artur Paikin
85fe3442e4 remove .js from import 2017-12-09 13:21:20 -05:00
Artur Paikin
ed9aa1a537 🚨this.core to this.uppy everywhere
danger again
2017-12-08 17:34:33 -05:00
Artur Paikin
d40db2874e fix Plugin path in tests 2017-11-28 19:11:15 -05:00
Rich Willars
540c02b6b0 Add jest tests
Adds tests for src/core/Utils

Ports translator tests to jest

Adds tests for core/index

Added code coverage report

Adds tests for core/UppySocket

Adds tests to src/core and cleanup of test directory

Switched from import to require as the project supports node v4

Runs tests using Babel for backwards compatibilty

Adds src/core state tests

Adds src/core reset & close tests

Updates stagnant snapshot

Adds tests for preprocessors and postprocessors in src/core/Core.js

Adds tests for uploaders and metadata in src/core/Core

Adds tests for adding and removing files in src/core/Core

Adds test for getFile
2017-09-08 17:18:58 +01:00
Kevin van Zonneveld
7256fb1113 Test refactoring /cc @arturi @hedgerh
- Move failing multipart dir into a v0.0.5 directory
- Add a passing dummy i18n acceptance test
- Move acceptance tests into own dir, just like unit tests
- Make acceptance test run the same way as as unit tests, via an
index.js
- Remove bash requirement to run acceptance tests
2016-04-07 09:18:12 +02:00
Kevin van Zonneveld
2d30ca657a Rename acquire->acquirer 2016-03-07 10:29:52 +01:00
Kevin van Zonneveld
9b8595943a core: Rename selecter to acquire 2016-03-07 09:25:08 +01:00
Kevin van Zonneveld
e4e80931ba Fix tests 2016-02-21 17:00:00 +01:00
Kevin van Zonneveld
39040c15f6 Fix bad names in fixtures 2016-02-21 16:52:43 +01:00
Kevin van Zonneveld
a52db8501b core: throw an error when one Plugin is .used twice
We don't support that now, and will result in very confusing behavior
2016-02-21 16:22:31 +01:00
Artur Paikin
8ccba1bac5 More Core tests 2016-02-13 23:30:48 -05:00
Artur Paikin
d89c0bf522 Tests: core 2016-02-12 19:48:54 -05:00
Artur Paikin
14617f4860 tests update, plugin mock added (work in progress) 2016-02-09 02:15:13 -05:00