Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adube committed Nov 15, 2018
1 parent c341692 commit 7f9af4a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/statemanager/WfsPermalink.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,12 @@ WfsPermalinkService.module = angular.module('ngeoWfsPermalink', [
]);


/**
* Set this value to enable WFS permalink.
*/
WfsPermalinkService.module.value('ngeoPermalinkOgcserverUrl', '');


/**
* Value that is supposed to be set in applications to enable the WFS
* permalink functionality.
Expand Down
5 changes: 4 additions & 1 deletion test/spec/services/wfspermalink.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ describe('ngeo.statemanager.WfsPermalink', () => {

beforeEach(() => {
angular.mock.module('ngeo', ($provide) => {
$provide.value(
'ngeoPermalinkOgcserverUrl',
'https://geomapfish-demo-dc.camptocamp.com/2.4/mapserv_proxy'
);
$provide.value('ngeoWfsPermalinkOptions', {
url: 'https://geomapfish-demo-dc.camptocamp.com/2.4/mapserv_proxy',
wfsTypes: [{featureType: 'fuel'}, {featureType: 'highway'}],
defaultFeatureNS: 'http://mapserver.gis.umn.edu/mapserver',
defaultFeaturePrefix: 'ms'
Expand Down

0 comments on commit 7f9af4a

Please sign in to comment.