From 2014cc27cc9da34bb61f291efebbd31e65519c03 Mon Sep 17 00:00:00 2001 From: "bhavinpatel@ebay.com" Date: Sat, 28 Sep 2019 00:06:23 -0700 Subject: [PATCH] remove NoopAnimationsModule --- projects/ngx-datetime-range-picker/package.json | 2 +- .../src/lib/ngx-datetime-range-picker.component.spec.ts | 3 ++- .../src/lib/ngx-datetime-range-picker.module.ts | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/projects/ngx-datetime-range-picker/package.json b/projects/ngx-datetime-range-picker/package.json index c50e708..d2299da 100644 --- a/projects/ngx-datetime-range-picker/package.json +++ b/projects/ngx-datetime-range-picker/package.json @@ -1,6 +1,6 @@ { "name": "ngx-datetime-range-picker", - "version": "1.1.6", + "version": "1.1.7", "homepage": "https://github.com/BhavinPatel04/ngx-datetime-range-picker", "bugs": "https://github.com/BhavinPatel04/ngx-datetime-range-picker/issues", "repository": { diff --git a/projects/ngx-datetime-range-picker/src/lib/ngx-datetime-range-picker.component.spec.ts b/projects/ngx-datetime-range-picker/src/lib/ngx-datetime-range-picker.component.spec.ts index 7bd49c4..6180f38 100644 --- a/projects/ngx-datetime-range-picker/src/lib/ngx-datetime-range-picker.component.spec.ts +++ b/projects/ngx-datetime-range-picker/src/lib/ngx-datetime-range-picker.component.spec.ts @@ -1,5 +1,6 @@ import { async, ComponentFixture, TestBed } from "@angular/core/testing"; import { SimpleChanges } from "@angular/core"; +import { NoopAnimationsModule } from "@angular/platform-browser/animations"; import { NgxDatetimeRangePickerModule } from "./ngx-datetime-range-picker.module"; import { NgxDatetimeRangePickerComponent } from "./ngx-datetime-range-picker.component"; import { DateSide } from "./interfaces"; @@ -13,7 +14,7 @@ describe("NgxDatetimeRangePickerComponent", () => { beforeEach(async(() => { TestBed.configureTestingModule({ - imports: [NgxDatetimeRangePickerModule], + imports: [NgxDatetimeRangePickerModule, NoopAnimationsModule], declarations: [] }).compileComponents(); })); diff --git a/projects/ngx-datetime-range-picker/src/lib/ngx-datetime-range-picker.module.ts b/projects/ngx-datetime-range-picker/src/lib/ngx-datetime-range-picker.module.ts index c3cbd37..ba7c09f 100644 --- a/projects/ngx-datetime-range-picker/src/lib/ngx-datetime-range-picker.module.ts +++ b/projects/ngx-datetime-range-picker/src/lib/ngx-datetime-range-picker.module.ts @@ -1,7 +1,6 @@ import { NgModule, ModuleWithProviders, Optional, SkipSelf } from "@angular/core"; import { CommonModule } from "@angular/common"; import { FormsModule } from "@angular/forms"; -import { NoopAnimationsModule } from "@angular/platform-browser/animations"; import { MaterialModule } from "./material/material.module"; import { NgxDatetimeRangePickerComponent } from "./ngx-datetime-range-picker.component"; import { ObjNgFor } from "./pipes/objNgFor.pipe"; @@ -9,13 +8,14 @@ import { NgxDatetimeRangePickerService } from "./ngx-datetime-range-picker.servi @NgModule({ declarations: [ObjNgFor, NgxDatetimeRangePickerComponent], - imports: [CommonModule, NoopAnimationsModule, FormsModule, MaterialModule], + imports: [CommonModule, FormsModule, MaterialModule], exports: [NgxDatetimeRangePickerComponent, MaterialModule] }) export class NgxDatetimeRangePickerModule { constructor(@Optional() @SkipSelf() parentModule: NgxDatetimeRangePickerModule) { if (parentModule) { - throw new Error("NgxDatetimeRangePickerModule is already loaded. Import it in the AppModule only"); + throw new Error(`ERR_NGX_DATETIME_RANGE_PICKER: + NgxDatetimeRangePickerModule is already loaded. Import it in the AppModule only`); } }