Skip to content

Commit 944ff32

Browse files
committed
Fix Prettier formatting
1 parent 6710521 commit 944ff32

2 files changed

Lines changed: 22 additions & 19 deletions

File tree

src/ogc-api/csapi/request-builders.spec.ts

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ describe('Request Builders', () => {
7575
buildSystemBody(
7676
{
7777
uid: 'urn:test:system',
78-
featureType: 'InvalidType', // Invalid: wrong feature type
78+
featureType: 'InvalidType', // Invalid: wrong feature type
7979
} as any,
8080
null,
8181
{ validate: true, strict: true }
@@ -167,7 +167,9 @@ describe('Request Builders', () => {
167167
expect(result.body.type).toBe('Feature');
168168
expect(result.body.properties.featureType).toBe('Property');
169169
expect(result.body.properties.uid).toBe('urn:test:property-1');
170-
expect(result.body.properties.definition).toBe('http://example.org/property');
170+
expect(result.body.properties.definition).toBe(
171+
'http://example.org/property'
172+
);
171173
expect(result.body.geometry).toBeNull();
172174
expect(result.contentType).toBe('application/geo+json');
173175
});
@@ -195,7 +197,9 @@ describe('Request Builders', () => {
195197
expect(result.body.properties.featureType).toBe('Datastream');
196198
expect(result.body.properties.uid).toBe('urn:test:ds-1');
197199
expect(result.body.properties.system).toBe('urn:test:system-1');
198-
expect(result.body.properties.observedProperty).toBe('http://example.org/temperature');
200+
expect(result.body.properties.observedProperty).toBe(
201+
'http://example.org/temperature'
202+
);
199203
expect(result.contentType).toBe('application/geo+json');
200204
});
201205

@@ -223,7 +227,9 @@ describe('Request Builders', () => {
223227
expect(result.body.properties.featureType).toBe('ControlStream');
224228
expect(result.body.properties.uid).toBe('urn:test:cs-1');
225229
expect(result.body.properties.system).toBe('urn:test:system-1');
226-
expect(result.body.properties.controlledProperty).toBe('http://example.org/valve-position');
230+
expect(result.body.properties.controlledProperty).toBe(
231+
'http://example.org/valve-position'
232+
);
227233
expect(result.contentType).toBe('application/geo+json');
228234
});
229235

@@ -269,11 +275,9 @@ describe('Request Builders', () => {
269275
},
270276
};
271277

272-
const result = buildFeatureBody(
273-
feature,
274-
validateSystemFeature,
275-
{ validate: false }
276-
);
278+
const result = buildFeatureBody(feature, validateSystemFeature, {
279+
validate: false,
280+
});
277281

278282
expect(result.validation).toBeUndefined();
279283
});
@@ -288,11 +292,10 @@ describe('Request Builders', () => {
288292
};
289293

290294
expect(() =>
291-
buildFeatureBody(
292-
invalidFeature as any,
293-
validateSystemFeature,
294-
{ validate: true, strict: true }
295-
)
295+
buildFeatureBody(invalidFeature as any, validateSystemFeature, {
296+
validate: true,
297+
strict: true,
298+
})
296299
).toThrow();
297300
});
298301
});
@@ -314,7 +317,7 @@ describe('Request Builders', () => {
314317
const result = buildSystemBody(
315318
{
316319
uid: 'urn:test:system',
317-
featureType: 'InvalidType', // Invalid: wrong feature type
320+
featureType: 'InvalidType', // Invalid: wrong feature type
318321
} as any,
319322
null,
320323
{ validate: true, strict: false }
@@ -329,7 +332,7 @@ describe('Request Builders', () => {
329332
buildSystemBody(
330333
{
331334
uid: 'urn:test:system',
332-
featureType: 'InvalidType', // Invalid: wrong feature type
335+
featureType: 'InvalidType', // Invalid: wrong feature type
333336
} as any,
334337
null,
335338
{ validate: true, strict: true }
@@ -400,7 +403,7 @@ describe('Request Builders', () => {
400403
expect(() =>
401404
buildPropertyBody(
402405
{ uid: 'test', featureType: 'InvalidType' } as any,
403-
406+
404407
{ validate: true, strict: true }
405408
)
406409
).toThrow();

src/ogc-api/csapi/sensorml/base-types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/**
22
* SensorML 3.0 Base Types
3-
*
3+
*
44
* Core type definitions for SensorML 3.0 JSON encoding.
55
* Based on OGC SensorML 3.0 Standard (OGC 23-000).
6-
*
6+
*
77
* References:
88
* - https://schemas.opengis.net/sensorML/3.0/json/
99
* - OGC 23-000: SensorML 3.0 Standard

0 commit comments

Comments
 (0)