Skip to content

Commit

Permalink
fix: set default endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
kukhariev committed May 14, 2019
1 parent fe4d8a1 commit fb28de3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/uploadx/src/uploadx.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ describe('UploadxService', () => {

it('should set default options', () => {
service.init({});
expect(service.options.endpoint).toEqual('/upload');
expect(service.options.concurrency).toEqual(2);
expect(service.options.autoUpload).toEqual(true);
});
Expand Down
1 change: 1 addition & 0 deletions src/uploadx/src/uploadx.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class UploadxService {
}
queue: Uploader[] = [];
options: UploadxOptions = {
endpoint: '/upload',
autoUpload: true,
concurrency: 2,
uploaderClass: UploaderX,
Expand Down

0 comments on commit fb28de3

Please sign in to comment.