DEV: fixes broken tests on ember-cli due to uppy

The import was not found and causing the following error:

```
Uncaught TypeError: Class extends value undefined is not a constructor or null
```
This commit is contained in:
jjaffeux 2021-08-25 18:34:17 +02:00 committed by Robin Ward
parent 506a5dc607
commit d4a418e295
4 changed files with 5 additions and 6 deletions

View File

@ -32,7 +32,7 @@ define("@popperjs/core", ["exports"], function (__exports__) {
define("@uppy/core", ["exports"], function (__exports__) {
__exports__.default = window.Uppy.Core;
__exports__.BasePlugin = window.Uppy.BasePlugin;
__exports__.Plugin = window.Uppy.Core.BasePlugin;
});
define("@uppy/aws-s3", ["exports"], function (__exports__) {

View File

@ -1,8 +1,8 @@
import { BasePlugin } from "@uppy/core";
import { Plugin } from "@uppy/core";
import { warn } from "@ember/debug";
import { Promise } from "rsvp";
export default class UppyChecksum extends BasePlugin {
export default class UppyChecksum extends Plugin {
constructor(uppy, opts) {
super(uppy, opts);
this.id = opts.id || "uppy-checksum";

View File

@ -1,8 +1,8 @@
import { BasePlugin } from "@uppy/core";
import { Plugin } from "@uppy/core";
import { warn } from "@ember/debug";
import { Promise } from "rsvp";
export default class UppyMediaOptimization extends BasePlugin {
export default class UppyMediaOptimization extends Plugin {
constructor(uppy, opts) {
super(uppy, opts);
this.id = opts.id || "uppy-media-optimization";

View File

@ -6,7 +6,6 @@
// use the plugins we actually want.
window.Uppy = {}
Uppy.Core = require('./packages/@uppy/core/lib/index.js')
Uppy.BasePlugin = Uppy.Core.BasePlugin
Uppy.XHRUpload = require('./packages/@uppy/xhr-upload/lib/index.js')
Uppy.AwsS3 = require('./packages/@uppy/aws-s3/lib/index.js')
Uppy.AwsS3Multipart = require('./packages/@uppy/aws-s3-multipart/lib/index.js')