Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
MINOR: Fix unhandled promise rejections.
Browse files Browse the repository at this point in the history
  • Loading branch information
atomicsulfate committed Nov 12, 2020
1 parent 7c16e28 commit 810c90e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions @here/harp-mapview/test/ImageCacheTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ describe("MapViewImageCache", function() {
it("#add images with same url but differing names", function() {
const cache = new MapViewImageCache();

cache.addImage("testImage1", "httpx://naxos.de");
cache.addImage("testImage2", "httpx://naxos.de");
cache.addImage("testImage1", "httpx://naxos.de", false);
cache.addImage("testImage2", "httpx://naxos.de", false);

const testImage1 = cache.findImageByName("testImage1");
const testImage2 = cache.findImageByName("testImage2");
Expand All @@ -221,8 +221,8 @@ describe("MapViewImageCache", function() {
it("#add images with same name but differing urls", function() {
const cache = new MapViewImageCache();
assert.throws(() => {
cache.addImage("testImage", "httpx://naxos.de");
cache.addImage("testImage", "httpx://naxos.de-2");
cache.addImage("testImage", "httpx://naxos.de", false);
cache.addImage("testImage", "httpx://naxos.de-2", false);
});
});

Expand All @@ -246,8 +246,8 @@ describe("MapViewImageCache", function() {
it("#remove image 2", function() {
const cache = new MapViewImageCache();

cache.addImage("testImage1", "httpx://naxos.de");
cache.addImage("testImage2", "httpx://naxos.de");
cache.addImage("testImage1", "httpx://naxos.de", false);
cache.addImage("testImage2", "httpx://naxos.de", false);

assert.exists(cache.findImageByName("testImage1"));
assert.exists(cache.findImageByName("testImage2"));
Expand Down

0 comments on commit 810c90e

Please sign in to comment.