Skip to content

Commit

Permalink
style: rename ShogunApplicationUtil to SHOGunApplicationUtil
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Renames ShogunApplicationUtil to SHOGunApplicationUtil
  • Loading branch information
dnlkoch committed Jun 24, 2022
1 parent ddd07dd commit d3ece9c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Application, Layer>;
let util: SHOGunApplicationUtil<Application, Layer>;

beforeEach(() => {
util = new ShogunApplicationUtil<Application, Layer>();
util = new SHOGunApplicationUtil<Application, Layer>();
});

afterEach(() => {
Expand All @@ -30,7 +30,7 @@ describe('ShogunApplicationUtil', () => {
});

it('is defined', () => {
expect(ShogunApplicationUtil).toBeDefined();
expect(SHOGunApplicationUtil).toBeDefined();
});

it('creates a mapView', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ import SHOGunAPIClient from '../service/SHOGunAPIClient';

import { getBearerTokenHeader } from '../security/getBearerTokenHeader';

export interface ShogunApplicationUtilOpts {
export interface SHOGunApplicationUtilOpts {
client?: SHOGunAPIClient;
}

class ShogunApplicationUtil<T extends Application, S extends Layer> {
class SHOGunApplicationUtil<T extends Application, S extends Layer> {

private client: SHOGunAPIClient | undefined;

constructor(opts?: ShogunApplicationUtilOpts) {
constructor(opts?: SHOGunApplicationUtilOpts) {
// TODO Default client?
this.client = opts?.client;
}
Expand Down Expand Up @@ -438,4 +438,4 @@ class ShogunApplicationUtil<T extends Application, S extends Layer> {
}
}

export default ShogunApplicationUtil;
export default SHOGunApplicationUtil;

0 comments on commit d3ece9c

Please sign in to comment.