This repository has been archived by the owner on Mar 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MINOR: Dont throw, if a Decoder has no style assigned (#1956)
Signed-off-by: Frauke Fritz <frauke.fritz@here.com>
- Loading branch information
Showing
5 changed files
with
34 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
@here/harp-vectortile-datasource/test/VectorTileDecoderTest.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Copyright (C) 2017-2020 HERE Europe B.V. | ||
* Licensed under Apache 2.0, see full license in LICENSE | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
import { mercatorProjection, TileKey } from "@here/harp-geoutils"; | ||
import { expect } from "chai"; | ||
|
||
import { VectorTileDecoder } from "../index-worker"; | ||
|
||
// Mocha discourages using arrow functions, see https://mochajs.org/#arrow-functions | ||
|
||
describe("ThemedTileDecoder", function() { | ||
it("#decodeTile does not throw", async function() { | ||
const target = new VectorTileDecoder(); | ||
|
||
expect( | ||
await target.decodeTile(new ArrayBuffer(0), new TileKey(0, 0, 0), mercatorProjection) | ||
).to.not.throw; | ||
}); | ||
}); |