forked from geosolutions-it/MapStore2
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
geosolutions-it#9139: Fix - New WFS layers no longer visible in dashb…
…oards (geosolutions-it#9230) (cherry picked from commit 3af3f96)
- Loading branch information
Showing
4 changed files
with
72 additions
and
4 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
33 changes: 33 additions & 0 deletions
33
web/client/plugins/widgetbuilder/enhancers/__tests__/layerSelector-test.js
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,33 @@ | ||
/* | ||
* Copyright 2023, GeoSolutions Sas. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
import expect from 'expect'; | ||
import { addSearchObservable } from '../layerSelector'; | ||
|
||
|
||
describe('layerSelector enhancer', function() { | ||
|
||
it('test addSearchObservable with addSearch', () => { | ||
expect(addSearchObservable({ | ||
type: "wms", | ||
name: "test-layer" | ||
}, { | ||
type: "wms" | ||
}).value).toBeFalsy(); | ||
}); | ||
it('test addSearchObservable skip addSearch', () => { | ||
expect(addSearchObservable({ | ||
type: "wfs", | ||
name: "test-layer" | ||
}, { | ||
type: "wfs" | ||
}).value).toBeTruthy(); | ||
}); | ||
|
||
}); | ||
|
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