From 9a726246e151365665d0b551b4375eca13c261b5 Mon Sep 17 00:00:00 2001 From: Thomas Meitz Date: Sat, 11 Nov 2017 12:49:16 +0100 Subject: [PATCH] small code corrections --- src/ngx-uploader/classes/ngx-uploader.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ngx-uploader/classes/ngx-uploader.spec.ts b/src/ngx-uploader/classes/ngx-uploader.spec.ts index 600e1bb2..f9dbc060 100644 --- a/src/ngx-uploader/classes/ngx-uploader.spec.ts +++ b/src/ngx-uploader/classes/ngx-uploader.spec.ts @@ -38,22 +38,22 @@ describe('setContentTypes function', () => { }); describe('isContentTypeAllowed function', () => { - var private_uploader = rewiredNgUploaderService.__get__('NgUploaderService'); + let rewiredUploader = rewiredNgUploaderService.__get__('NgUploaderService'); it('should return true', () => { - let uploader = new private_uploader(); + let uploader = new rewiredUploader(); expect(uploader.isContentTypeAllowed('all/you-can-eat')).is.true; }); it('should return true', () => { - let uploader = new private_uploader(1, ['image/jpeg', 'image/png', 'image/gif']); + let uploader = new rewiredUploader(1, ['image/jpeg', 'image/png', 'image/gif']); expect(uploader.isContentTypeAllowed('image/jpeg')).is.true; expect(uploader.isContentTypeAllowed('image/gif')).is.true; expect(uploader.isContentTypeAllowed('image/png')).is.true; }); it('should return false', () => { - let uploader = new private_uploader(1, ['image/jpeg', 'image/png', 'image/gif']); + let uploader = new rewiredUploader(1, ['image/jpeg', 'image/png', 'image/gif']); expect(uploader.isContentTypeAllowed('image/webm')).is.false; }); });