Skip to content

Commit

Permalink
feat: Add google.maps.Data.Feature mocks (#146) 2ae2ff2
Browse files Browse the repository at this point in the history
  • Loading branch information
googlemaps-bot committed Dec 2, 2021
1 parent afe9a9e commit 2b97672
Show file tree
Hide file tree
Showing 17 changed files with 29 additions and 16 deletions.
2 changes: 1 addition & 1 deletion assets/search.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion classes/Data.html

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions classes/Feature.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Feature | @googlemaps/jest-mocks</title><meta name="description" content="Documentation for @googlemaps/jest-mocks"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@googlemaps/jest-mocks</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@googlemaps/jest-mocks</a></li><li><a href="Feature.html">Feature</a></li></ul><h1>Class Feature</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><div class="lead">
<p>Copyright 2019 Google LLC. All Rights Reserved.</p>
</div><div><p>Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at</p>
<pre><code><span class="hl-1"> </span><span class="hl-6">http</span><span class="hl-1">:</span><span class="hl-7">//www.apache.org/licenses/LICENSE-2.0</span>
</code></pre>
<p>Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.</p>
</div></div></section><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="target">Feature</span></li></ul></section><section class="tsd-panel"><h3>Implements</h3><ul class="tsd-hierarchy"><li><span class="tsd-signature-type">Feature</span></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Constructors</h3><ul class="tsd-index-list"><li class="tsd-kind-constructor tsd-parent-kind-class"><a href="Feature.html#constructor" class="tsd-kind-icon">constructor</a></li></ul></section><section class="tsd-index-section "><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-class"><a href="Feature.html#forEachProperty" class="tsd-kind-icon">for<wbr/>Each<wbr/>Property</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="Feature.html#getGeometry" class="tsd-kind-icon">get<wbr/>Geometry</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="Feature.html#getId" class="tsd-kind-icon">get<wbr/>Id</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="Feature.html#getProperty" class="tsd-kind-icon">get<wbr/>Property</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="Feature.html#removeProperty" class="tsd-kind-icon">remove<wbr/>Property</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="Feature.html#setGeometry" class="tsd-kind-icon">set<wbr/>Geometry</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="Feature.html#setProperty" class="tsd-kind-icon">set<wbr/>Property</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="Feature.html#toGeoJson" class="tsd-kind-icon">to<wbr/>Geo<wbr/>Json</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Constructors</h2><section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class"><a id="constructor" class="tsd-anchor"></a><h3>constructor</h3><ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">new <wbr/>Feature<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">FeatureOptions</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="Feature.html" class="tsd-signature-type" data-tsd-kind="Class">Feature</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/googlemaps/js-jest-mocks/blob/2ae2ff2/src/data.feature.ts#L18">data.feature.ts:18</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> options: <span class="tsd-signature-type">FeatureOptions</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="Feature.html" class="tsd-signature-type" data-tsd-kind="Class">Feature</a></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group "><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="forEachProperty" class="tsd-anchor"></a><h3>for<wbr/>Each<wbr/>Property</h3><div class="tsd-signature tsd-kind-icon">for<wbr/>Each<wbr/>Property<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Mock</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><p>Implementation of google.maps.Data.Feature.forEachProperty</p><ul><li>Defined in <a href="https://github.com/googlemaps/js-jest-mocks/blob/2ae2ff2/src/data.feature.ts#L19">data.feature.ts:19</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="getGeometry" class="tsd-anchor"></a><h3>get<wbr/>Geometry</h3><div class="tsd-signature tsd-kind-icon">get<wbr/>Geometry<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Mock</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><p>Implementation of google.maps.Data.Feature.getGeometry</p><ul><li>Defined in <a href="https://github.com/googlemaps/js-jest-mocks/blob/2ae2ff2/src/data.feature.ts#L24">data.feature.ts:24</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="getId" class="tsd-anchor"></a><h3>get<wbr/>Id</h3><div class="tsd-signature tsd-kind-icon">get<wbr/>Id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Mock</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><p>Implementation of google.maps.Data.Feature.getId</p><ul><li>Defined in <a href="https://github.com/googlemaps/js-jest-mocks/blob/2ae2ff2/src/data.feature.ts#L27">data.feature.ts:27</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="getProperty" class="tsd-anchor"></a><h3>get<wbr/>Property</h3><div class="tsd-signature tsd-kind-icon">get<wbr/>Property<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Mock</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><p>Implementation of google.maps.Data.Feature.getProperty</p><ul><li>Defined in <a href="https://github.com/googlemaps/js-jest-mocks/blob/2ae2ff2/src/data.feature.ts#L30">data.feature.ts:30</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="removeProperty" class="tsd-anchor"></a><h3>remove<wbr/>Property</h3><div class="tsd-signature tsd-kind-icon">remove<wbr/>Property<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Mock</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><p>Implementation of google.maps.Data.Feature.removeProperty</p><ul><li>Defined in <a href="https://github.com/googlemaps/js-jest-mocks/blob/2ae2ff2/src/data.feature.ts#L33">data.feature.ts:33</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="setGeometry" class="tsd-anchor"></a><h3>set<wbr/>Geometry</h3><div class="tsd-signature tsd-kind-icon">set<wbr/>Geometry<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Mock</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><p>Implementation of google.maps.Data.Feature.setGeometry</p><ul><li>Defined in <a href="https://github.com/googlemaps/js-jest-mocks/blob/2ae2ff2/src/data.feature.ts#L36">data.feature.ts:36</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="setProperty" class="tsd-anchor"></a><h3>set<wbr/>Property</h3><div class="tsd-signature tsd-kind-icon">set<wbr/>Property<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Mock</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><p>Implementation of google.maps.Data.Feature.setProperty</p><ul><li>Defined in <a href="https://github.com/googlemaps/js-jest-mocks/blob/2ae2ff2/src/data.feature.ts#L49">data.feature.ts:49</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="toGeoJson" class="tsd-anchor"></a><h3>to<wbr/>Geo<wbr/>Json</h3><div class="tsd-signature tsd-kind-icon">to<wbr/>Geo<wbr/>Json<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Mock</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><p>Implementation of google.maps.Data.Feature.toGeoJson</p><ul><li>Defined in <a href="https://github.com/googlemaps/js-jest-mocks/blob/2ae2ff2/src/data.feature.ts#L54">data.feature.ts:54</a></li></ul></aside></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../modules.html">Exports</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-class"><a href="Feature.html" class="tsd-kind-icon">Feature</a><ul><li class="tsd-kind-constructor tsd-parent-kind-class"><a href="Feature.html#constructor" class="tsd-kind-icon">constructor</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="Feature.html#forEachProperty" class="tsd-kind-icon">for<wbr/>Each<wbr/>Property</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="Feature.html#getGeometry" class="tsd-kind-icon">get<wbr/>Geometry</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="Feature.html#getId" class="tsd-kind-icon">get<wbr/>Id</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="Feature.html#getProperty" class="tsd-kind-icon">get<wbr/>Property</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="Feature.html#removeProperty" class="tsd-kind-icon">remove<wbr/>Property</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="Feature.html#setGeometry" class="tsd-kind-icon">set<wbr/>Geometry</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="Feature.html#setProperty" class="tsd-kind-icon">set<wbr/>Property</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="Feature.html#toGeoJson" class="tsd-kind-icon">to<wbr/>Geo<wbr/>Json</a></li></ul></li></ul></nav></div></div></div><footer class="with-border-bottom"><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="container tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><script src="../assets/main.js"></script></body></html>
Loading

0 comments on commit 2b97672

Please sign in to comment.