Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
offtherailz committed May 5, 2017
1 parent 792c051 commit 5a26dc4
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions web/client/utils/__tests__/TileConfigProvider-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,9 @@ describe('TileConfigProvider', () => {
const config = TileConfigProvider.getLayerConfig('Thunderforest.OpenCycleMap');
expect(config).toExist();
});
it('test getLayerConfig with variant with variant optins', () => {
const config = TileConfigProvider.getLayerConfig('Thunderforest.Transport');
it('test getLayerConfig with variant optins', () => {
const [url, config] = TileConfigProvider.getLayerConfig('Thunderforest.Transport');
expect(url).toExist();
expect(config).toExist();
expect(config.options).toExist();
});
it('test getLayerConfig forceHTTP', () => {
const config = TileConfigProvider.getLayerConfig('OpenStreetMap');
expect(config).toExist();
expect(config.url.indexOf('http:')).toBe(0);
});


});

0 comments on commit 5a26dc4

Please sign in to comment.