Skip to content

Commit

Permalink
chore: update zone.js testing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
QuCMGisaia committed Dec 16, 2024
1 parent e0bd11a commit d4d5a5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { TranslateFakeLoader, TranslateLoader, TranslateModule } from '@ngx-translate/core';
import { ColorGeneratorModule } from '../../services/color.generator.module';
import { ArlasColorService } from '../../services/color.generator.service';
import { AwcColorGeneratorLoader, ColorGeneratorLoader } from '../componentsUtils';
import { DonutComponent } from './donut.component';

Expand All @@ -39,9 +38,7 @@ describe('DonutComponent', () => {
useClass: AwcColorGeneratorLoader
}
})
],
providers: [
ArlasColorService ]
]
})
.compileComponents();
}));
Expand Down
8 changes: 2 additions & 6 deletions src/test.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
// This file is required by karma.conf.js and loads recursively all the .spec and framework files

import 'zone.js/dist/long-stack-trace-zone';
import 'zone.js/dist/proxy.js';
import 'zone.js/dist/sync-test';
import 'zone.js/dist/jasmine-patch';
import 'zone.js/dist/async-test';
import 'zone.js/dist/fake-async-test';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';
import 'zone.js';
import 'zone.js/testing';

// Unfortunately there's no typing for the `__karma__` variable. Just declare it as any.
// eslint-disable-next-line @typescript-eslint/naming-convention
Expand Down

0 comments on commit d4d5a5e

Please sign in to comment.