| 184 | |
| 185 | it('broadcast_Polygon', done => { |
| 186 | var broadcast_Polygon = flowService => { |
| 187 | var feature = { |
| 188 | geometry: { |
| 189 | coordinates: [ |
| 190 | [ |
| 191 | [116.381741960925, 39.8765100055449], |
| 192 | [116.414681699817, 39.8765100055449], |
| 193 | [116.414681699817, 39.8415115329708], |
| 194 | [116.381741960925, 39.8765100055449] |
| 195 | ] |
| 196 | ], |
| 197 | type: 'Polygon' |
| 198 | }, |
| 199 | id: 3, |
| 200 | type: 'Feature', |
| 201 | properties: { |
| 202 | id: 3, |
| 203 | time: new Date() |
| 204 | } |
| 205 | }; |
| 206 | flowService.broadcast(feature); |
| 207 | }; |
| 208 | |
| 209 | const source = new DataFlow({ |
| 210 | ws: urlDataFlow |
no test coverage detected