From d3ece9c1a465916fd959a33e4012b86befba565d Mon Sep 17 00:00:00 2001 From: Daniel Koch Date: Fri, 24 Jun 2022 10:24:25 +0200 Subject: [PATCH] style: rename ShogunApplicationUtil to SHOGunApplicationUtil BREAKING CHANGE: Renames ShogunApplicationUtil to SHOGunApplicationUtil --- ...ationUtil.spec.ts => SHOGunApplicationUtil.spec.ts} | 10 +++++----- ...ogunApplicationUtil.ts => SHOGunApplicationUtil.ts} | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) rename src/parser/{ShogunApplicationUtil.spec.ts => SHOGunApplicationUtil.spec.ts} (96%) rename src/parser/{ShogunApplicationUtil.ts => SHOGunApplicationUtil.ts} (98%) diff --git a/src/parser/ShogunApplicationUtil.spec.ts b/src/parser/SHOGunApplicationUtil.spec.ts similarity index 96% rename from src/parser/ShogunApplicationUtil.spec.ts rename to src/parser/SHOGunApplicationUtil.spec.ts index 876c262d3..51d49a486 100644 --- a/src/parser/ShogunApplicationUtil.spec.ts +++ b/src/parser/SHOGunApplicationUtil.spec.ts @@ -12,14 +12,14 @@ import { getUid } from 'ol/util'; import Application from '../model/Application'; import Layer from '../model/Layer'; -import ShogunApplicationUtil from './ShogunApplicationUtil'; +import SHOGunApplicationUtil from './SHOGunApplicationUtil'; -describe('ShogunApplicationUtil', () => { +describe('SHOGunApplicationUtil', () => { let fetchMock: jest.SpyInstance; - let util: ShogunApplicationUtil; + let util: SHOGunApplicationUtil; beforeEach(() => { - util = new ShogunApplicationUtil(); + util = new SHOGunApplicationUtil(); }); afterEach(() => { @@ -30,7 +30,7 @@ describe('ShogunApplicationUtil', () => { }); it('is defined', () => { - expect(ShogunApplicationUtil).toBeDefined(); + expect(SHOGunApplicationUtil).toBeDefined(); }); it('creates a mapView', async () => { diff --git a/src/parser/ShogunApplicationUtil.ts b/src/parser/SHOGunApplicationUtil.ts similarity index 98% rename from src/parser/ShogunApplicationUtil.ts rename to src/parser/SHOGunApplicationUtil.ts index d16773777..42cbec321 100644 --- a/src/parser/ShogunApplicationUtil.ts +++ b/src/parser/SHOGunApplicationUtil.ts @@ -36,15 +36,15 @@ import SHOGunAPIClient from '../service/SHOGunAPIClient'; import { getBearerTokenHeader } from '../security/getBearerTokenHeader'; -export interface ShogunApplicationUtilOpts { +export interface SHOGunApplicationUtilOpts { client?: SHOGunAPIClient; } -class ShogunApplicationUtil { +class SHOGunApplicationUtil { private client: SHOGunAPIClient | undefined; - constructor(opts?: ShogunApplicationUtilOpts) { + constructor(opts?: SHOGunApplicationUtilOpts) { // TODO Default client? this.client = opts?.client; } @@ -438,4 +438,4 @@ class ShogunApplicationUtil { } } -export default ShogunApplicationUtil; +export default SHOGunApplicationUtil;