wd 7 years ago
parent
commit
8bc1975c8a
1 changed files with 10 additions and 10 deletions
  1. 10 10
      __tests__/vars.ts

+ 10 - 10
__tests__/vars.ts

@@ -3,7 +3,7 @@ import * as AirspaceInfo from '../index';
 export const circleServer: AirspaceInfo.AirspaceInfoCircleServer = {
     airspace_name: "test",
     airspace_type: 1,
-    airspace_id: 123,
+    airspace_id: "123",
     note: "notes note",
 
     center_loc: "loc name",
@@ -16,12 +16,12 @@ export const circleServer: AirspaceInfo.AirspaceInfoCircleServer = {
     unit: 1
 }
 
-export const circleLocal = <AirspaceInfo.AirspaceInfoCircleLocal>{"addr": "loc name", "airspaceId": 123, "airspaceType": 1, "height": "1000", "heightStandard": "米/真高", "lat": "123°24′00″", "lng": "40°18′00″", "name": "test", "note": "notes note", "radius": 123}
+export const circleLocal = <AirspaceInfo.AirspaceInfoCircleLocal>{"addr": "loc name", "airspaceId": "123", "airspaceType": 1, "height": "1000", "heightStandard": "米/真高", "lat": "123°24′00″", "lng": "40°18′00″", "name": "test", "note": "notes note", "radius": 123}
 
 export const polygonServer: AirspaceInfo.AirspaceInfoPolygonServer = {
     airspace_name: 'test',
     airspace_type: 3,
-    airspace_id: 123,
+    airspace_id: "123",
     note: 'notes',
     points: [{
         addr: 'test',
@@ -32,12 +32,12 @@ export const polygonServer: AirspaceInfo.AirspaceInfoPolygonServer = {
     unit: 1
 }
 
-export const polygonLocal: AirspaceInfo.AirspaceInfoPolygonLocal = {"airspaceId": 123, "airspaceType": 3, "height": "123", "heightStandard": "米/真高", "name": "test", "note": "notes", "polygonPoints": [{"addr": "test", "lat": "123°24′00″", "lng": "40°18′00″"}]}
+export const polygonLocal: AirspaceInfo.AirspaceInfoPolygonLocal = {"airspaceId": "123", "airspaceType": 3, "height": "123", "heightStandard": "米/真高", "name": "test", "note": "notes", "polygonPoints": [{"addr": "test", "lat": "123°24′00″", "lng": "40°18′00″"}]}
 
 export const lineServer1: AirspaceInfo.AirspaceInfoLineServer = {
     airspace_name: "test",
     airspace_type: 2,
-    airspace_id: 123,
+    airspace_id: "123",
     note: "notes note",
 
     start_loc: "start loc",
@@ -86,12 +86,12 @@ export const lineServer1: AirspaceInfo.AirspaceInfoLineServer = {
     airline_width: 12
 }
 
-export const lineLocal1: AirspaceInfo.AirspaceInfoLineLocal = {"airlineWidth": 12, "airspaceId": 123, "airspaceType": 2, "arrive": {"addr": "end loc", "lat": "123°24′00″", "lng": "40°18′00″"}, "dep": {"addr": "start loc", "height": "111", "heightStandard": "米(含以下)/标高", "lat": "123°24′00″", "lng": "40°18′00″"}, "name": "test", "note": "notes note", "passPoints": [{"addr": "test point", "height": "1000", "heightStandard": "米/标高", "lat": "123°24′00″", "lng": "40°18′00″", "pointType": 3}, {"airRouteId": 123, "airlineCode": "B334", "airlines": [{"lat": 123.4, "lng": 40.3, "point_code": "UAV22", "point_id": 123, "point_name": "test point"}], "height": "1111", "heightStandard": "米/真高", "pointType": 2}, {"height": "12222", "heightStandard": "米(含以下)/真高", "lat": "123°24′00″", "lng": "40°18′00″", "pointCode": "123", "pointId": 123, "pointName": "test point", "pointType": 1}]}
+export const lineLocal1: AirspaceInfo.AirspaceInfoLineLocal = {"airlineWidth": 12, "airspaceId": "123", "airspaceType": 2, "arrive": {"addr": "end loc", "lat": "123°24′00″", "lng": "40°18′00″"}, "dep": {"addr": "start loc", "height": "111", "heightStandard": "米(含以下)/标高", "lat": "123°24′00″", "lng": "40°18′00″"}, "name": "test", "note": "notes note", "passPoints": [{"addr": "test point", "height": "1000", "heightStandard": "米/标高", "lat": "123°24′00″", "lng": "40°18′00″", "pointType": 3}, {"airRouteId": 123, "airlineCode": "B334", "airlines": [{"lat": 123.4, "lng": 40.3, "point_code": "UAV22", "point_id": 123, "point_name": "test point"}], "height": "1111", "heightStandard": "米/真高", "pointType": 2}, {"height": "12222", "heightStandard": "米(含以下)/真高", "lat": "123°24′00″", "lng": "40°18′00″", "pointCode": "123", "pointId": 123, "pointName": "test point", "pointType": 1}]}
 
 export const lineServer2: AirspaceInfo.AirspaceInfoLineServer = {
     airspace_name: "test",
     airspace_type: 2,
-    airspace_id: 123,
+    airspace_id: "123",
     note: "notes note",
 
     start_loc: "start loc",
@@ -139,12 +139,12 @@ export const lineServer2: AirspaceInfo.AirspaceInfoLineServer = {
     }]
 }
 
-export const lineLocal2: AirspaceInfo.AirspaceInfoLineLocal = {"airspaceId": 123, "airspaceType": 2, "arrive": {"addr": "end loc", "lat": "123°24′00″", "lng": "40°18′00″"}, "dep": {"addr": "start loc", "height": "111", "heightStandard": "米(含以下)/标高", "lat": "123°24′00″", "lng": "40°18′00″"}, "name": "test", "note": "notes note", "passPoints": [{"addr": "test point", "height": "1000", "heightStandard": "米/标高", "lat": "123°24′00″", "lng": "40°18′00″", "pointType": 3}, {"airRouteId": 123, "airlineCode": "B334", "airlines": [{"lat": 123.4, "lng": 40.3, "point_code": "UAV22", "point_id": 123, "point_name": "test point"}], "height": "1111", "heightStandard": "米/真高", "pointType": 2}, {"height": "12222", "heightStandard": "米(含以下)/真高", "lat": "123°24′00″", "lng": "40°18′00″", "pointCode": "123", "pointId": 123, "pointName": "test point", "pointType": 1}]}
+export const lineLocal2: AirspaceInfo.AirspaceInfoLineLocal = {"airspaceId": "123", "airspaceType": 2, "arrive": {"addr": "end loc", "lat": "123°24′00″", "lng": "40°18′00″"}, "dep": {"addr": "start loc", "height": "111", "heightStandard": "米(含以下)/标高", "lat": "123°24′00″", "lng": "40°18′00″"}, "name": "test", "note": "notes note", "passPoints": [{"addr": "test point", "height": "1000", "heightStandard": "米/标高", "lat": "123°24′00″", "lng": "40°18′00″", "pointType": 3}, {"airRouteId": 123, "airlineCode": "B334", "airlines": [{"lat": 123.4, "lng": 40.3, "point_code": "UAV22", "point_id": 123, "point_name": "test point"}], "height": "1111", "heightStandard": "米/真高", "pointType": 2}, {"height": "12222", "heightStandard": "米(含以下)/真高", "lat": "123°24′00″", "lng": "40°18′00″", "pointCode": "123", "pointId": 123, "pointName": "test point", "pointType": 1}]}
 
 export const lineServer3: AirspaceInfo.AirspaceInfoLineServer = {
     airspace_name: "test",
     airspace_type: 2,
-    airspace_id: 123,
+    airspace_id: "123",
     note: "notes note",
 
     start_loc: "start loc",
@@ -163,4 +163,4 @@ export const lineServer3: AirspaceInfo.AirspaceInfoLineServer = {
     passing_points: []
 }
 
-export const lineLocal3: AirspaceInfo.AirspaceInfoLineLocal = {"airspaceId": 123, "airspaceType": 2, "arrive": {"addr": "end loc", "lat": "123°24′00″", "lng": "40°18′00″"}, "dep": {"addr": "start loc", "height": "111", "heightStandard": "米(含以下)/标高", "lat": "123°24′00″", "lng": "40°18′00″"}, "name": "test", "note": "notes note", "passPoints": []}
+export const lineLocal3: AirspaceInfo.AirspaceInfoLineLocal = {"airspaceId": "123", "airspaceType": 2, "arrive": {"addr": "end loc", "lat": "123°24′00″", "lng": "40°18′00″"}, "dep": {"addr": "start loc", "height": "111", "heightStandard": "米(含以下)/标高", "lat": "123°24′00″", "lng": "40°18′00″"}, "name": "test", "note": "notes note", "passPoints": []}