All files / api/trimet-client/src/fixture allRoutes.ts

100% Statements 15/15
100% Branches 0/0
100% Functions 1/1
100% Lines 15/15

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145    50x   50x                   50x                   50x                   50x                   50x                   50x                   50x                   50x                   50x                   50x                   50x                   50x                     1x                                 1x    
import type { RouteDataResultSet } from "../interfaces/routes";
 
const routeStopDirections = [];
 
const route1 = {
  desc: "TrimetRoute 1",
  dir: routeStopDirections,
  id: 1,
  route: 1,
  routeColor: "string",
  routeSortOrder: 123,
  type: "B"
};
 
const route2 = {
  desc: "TrimetRoute 2",
  dir: routeStopDirections,
  id: 2,
  route: 2,
  routeColor: "string",
  routeSortOrder: 123,
  type: "B"
};
 
const route3 = {
  desc: "TrimetRoute 3",
  dir: routeStopDirections,
  id: 3,
  route: 3,
  routeColor: "string",
  routeSortOrder: 123,
  type: "B"
};
 
const route4 = {
  desc: "TrimetRoute 4",
  dir: routeStopDirections,
  id: 3,
  route: 3,
  routeColor: "string",
  routeSortOrder: 123,
  type: "B"
};
 
const blueLine = {
  desc: "TrimetRoute 4",
  dir: routeStopDirections,
  id: 100,
  route: 100,
  routeColor: "string",
  routeSortOrder: 123,
  type: "T"
};
 
const redLine = {
  desc: "TrimetRoute 4",
  dir: routeStopDirections,
  id: 90,
  route: 90,
  routeColor: "string",
  routeSortOrder: 123,
  type: "T"
};
 
const greenLine = {
  desc: "TrimetRoute 4",
  dir: routeStopDirections,
  id: 200,
  route: 200,
  routeColor: "string",
  routeSortOrder: 123,
  type: "T"
};
 
const yellowLine = {
  desc: "TrimetRoute 4",
  dir: routeStopDirections,
  id: 190,
  route: 190,
  routeColor: "string",
  routeSortOrder: 123,
  type: "T"
};
 
const orangeLine = {
  desc: "TrimetRoute 4",
  dir: routeStopDirections,
  id: 290,
  route: 290,
  routeColor: "string",
  routeSortOrder: 123,
  type: "T"
};
 
const streetCarSLine = {
  desc: "TrimetRoute 4",
  dir: routeStopDirections,
  id: 193,
  route: 193,
  routeColor: "string",
  routeSortOrder: 123,
  type: "S"
};
 
const streetCarBLoop = {
  desc: "TrimetRoute 4",
  dir: routeStopDirections,
  id: 195,
  route: 195,
  routeColor: "string",
  routeSortOrder: 123,
  type: "S"
};
 
const streetCarALoop = {
  desc: "TrimetRoute 4",
  dir: routeStopDirections,
  id: 194,
  route: 194,
  routeColor: "string",
  routeSortOrder: 123,
  type: "S"
};
 
export function allRoutesFixtureData(): Promise<RouteDataResultSet> {
  const routeData: RouteDataResultSet = {
    route: [
      route1,
      route2,
      route3,
      route4,
      blueLine,
      redLine,
      greenLine,
      yellowLine,
      orangeLine,
      streetCarSLine,
      streetCarBLoop,
      streetCarALoop
    ]
  };
 
  return Promise.resolve(routeData);
}