mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 16:42:56 +00:00
49 lines
1.6 KiB
TypeScript
49 lines
1.6 KiB
TypeScript
/*
|
|
* Copyright (C) 2019-2021 StApps
|
|
* This program is free software: you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License as published by the Free
|
|
* Software Foundation, version 3.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
* more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along with
|
|
* this program. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
import {TestBed} from '@angular/core/testing';
|
|
|
|
import {Geolocation} from '@ionic-native/geolocation/ngx';
|
|
import {Diagnostic} from '@ionic-native/diagnostic/ngx';
|
|
import {MapProvider} from './map.provider';
|
|
import {StAppsWebHttpClient} from '../data/stapps-web-http-client.provider';
|
|
import {HttpClientModule} from '@angular/common/http';
|
|
import {StorageProvider} from '../storage/storage.provider';
|
|
import {MapModule} from './map.module';
|
|
import {StorageModule} from '../storage/storage.module';
|
|
import {LoggerConfig, LoggerModule, NGXLogger} from 'ngx-logger';
|
|
|
|
describe('MapProvider', () => {
|
|
let provider: MapProvider;
|
|
|
|
beforeEach(() => {
|
|
TestBed.configureTestingModule({
|
|
imports: [MapModule, HttpClientModule, StorageModule, LoggerModule],
|
|
providers: [
|
|
Geolocation,
|
|
Diagnostic,
|
|
StAppsWebHttpClient,
|
|
StorageProvider,
|
|
NGXLogger,
|
|
LoggerConfig,
|
|
],
|
|
});
|
|
provider = TestBed.inject(MapProvider);
|
|
});
|
|
|
|
it('should be created', () => {
|
|
expect(provider).toBeTruthy();
|
|
});
|
|
});
|