Skip to content

Commit

Permalink
Merge pull request #40 from M-Scott-Lassiter/next
Browse files Browse the repository at this point in the history
Add toHaveStringID and toHaveNumericID Matchers
  • Loading branch information
M-Scott-Lassiter committed Jun 8, 2022
2 parents 428faa4 + e6c55bd commit 8fe79f8
Show file tree
Hide file tree
Showing 66 changed files with 2,362 additions and 63 deletions.
4 changes: 3 additions & 1 deletion .cz-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ const allMatchers = [
{ name: 'toBePointGeometry' },
{ name: 'toBePolygonGeometry' },
{ name: 'toBeValidGeoJSON' },
{ name: 'toHaveID' }
{ name: 'toHaveID' },
{ name: 'toHaveNumericID' },
{ name: 'toHaveStringID' }
]

const documentationScopes = [
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div align="center">

[<img src="images/banner.svg" alt="Jest-GeoJSON - GeoJSON Validation Matchers for Jest" width=500>](https://www.npmjs.com/package/jest-geojson)
[<img src="https://raw.githubusercontent.com/M-Scott-Lassiter/jest-geojson/main/images/banner.svg" alt="Jest-GeoJSON - GeoJSON Validation Matchers for Jest" width=500>](https://www.npmjs.com/package/jest-geojson)

---

Expand Down Expand Up @@ -157,13 +157,13 @@ _Future_

- [toBeFeature](https://m-scott-lassiter.github.io/jest-geojson/Matchers.Features.html#.toBeFeature)
- [toHaveID](https://m-scott-lassiter.github.io/jest-geojson/Matchers.Features.html#.toHaveID)
- [toHaveNumericID](https://m-scott-lassiter.github.io/jest-geojson/Matchers.Features.html#.toHaveNumericID)
- [toHaveStringID](https://m-scott-lassiter.github.io/jest-geojson/Matchers.Features.html#.toHaveStringID)

---

_Future_

- [ ] toHaveStringID
- [ ] toHaveNumericID
- [ ] toHaveProperties (array of [property, optional values])

## Feature Collections
Expand Down
8 changes: 7 additions & 1 deletion docs/Core.BoundingBoxes.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<meta
name="description"
content="An extended set of matcher functions for the Jest Javascript unit testing framework tailored to evaluating with GeoJSON data."
content="An extended set of matcher functions for the Jest Javascript unit testing framework tailored to evaluating GeoJSON data."
/>

<meta
Expand Down Expand Up @@ -224,6 +224,12 @@ <h3>Namespaces</h3>
<li data-type="method">
<a href="Matchers.Features.html#.toHaveID">toHaveID</a>
</li>
<li data-type="method">
<a href="Matchers.Features.html#.toHaveNumericID">toHaveNumericID</a>
</li>
<li data-type="method">
<a href="Matchers.Features.html#.toHaveStringID">toHaveStringID</a>
</li>
</ul>
</li>
<li>
Expand Down
8 changes: 7 additions & 1 deletion docs/Core.Coordinates.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<meta
name="description"
content="An extended set of matcher functions for the Jest Javascript unit testing framework tailored to evaluating with GeoJSON data."
content="An extended set of matcher functions for the Jest Javascript unit testing framework tailored to evaluating GeoJSON data."
/>

<meta
Expand Down Expand Up @@ -224,6 +224,12 @@ <h3>Namespaces</h3>
<li data-type="method">
<a href="Matchers.Features.html#.toHaveID">toHaveID</a>
</li>
<li data-type="method">
<a href="Matchers.Features.html#.toHaveNumericID">toHaveNumericID</a>
</li>
<li data-type="method">
<a href="Matchers.Features.html#.toHaveStringID">toHaveStringID</a>
</li>
</ul>
</li>
<li>
Expand Down
8 changes: 7 additions & 1 deletion docs/Core.FeatureCollections.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<meta
name="description"
content="An extended set of matcher functions for the Jest Javascript unit testing framework tailored to evaluating with GeoJSON data."
content="An extended set of matcher functions for the Jest Javascript unit testing framework tailored to evaluating GeoJSON data."
/>

<meta
Expand Down Expand Up @@ -224,6 +224,12 @@ <h3>Namespaces</h3>
<li data-type="method">
<a href="Matchers.Features.html#.toHaveID">toHaveID</a>
</li>
<li data-type="method">
<a href="Matchers.Features.html#.toHaveNumericID">toHaveNumericID</a>
</li>
<li data-type="method">
<a href="Matchers.Features.html#.toHaveStringID">toHaveStringID</a>
</li>
</ul>
</li>
<li>
Expand Down
8 changes: 7 additions & 1 deletion docs/Core.Features.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<meta
name="description"
content="An extended set of matcher functions for the Jest Javascript unit testing framework tailored to evaluating with GeoJSON data."
content="An extended set of matcher functions for the Jest Javascript unit testing framework tailored to evaluating GeoJSON data."
/>

<meta
Expand Down Expand Up @@ -224,6 +224,12 @@ <h3>Namespaces</h3>
<li data-type="method">
<a href="Matchers.Features.html#.toHaveID">toHaveID</a>
</li>
<li data-type="method">
<a href="Matchers.Features.html#.toHaveNumericID">toHaveNumericID</a>
</li>
<li data-type="method">
<a href="Matchers.Features.html#.toHaveStringID">toHaveStringID</a>
</li>
</ul>
</li>
<li>
Expand Down
8 changes: 7 additions & 1 deletion docs/Core.Geometries.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<meta
name="description"
content="An extended set of matcher functions for the Jest Javascript unit testing framework tailored to evaluating with GeoJSON data."
content="An extended set of matcher functions for the Jest Javascript unit testing framework tailored to evaluating GeoJSON data."
/>

<meta
Expand Down Expand Up @@ -224,6 +224,12 @@ <h3>Namespaces</h3>
<li data-type="method">
<a href="Matchers.Features.html#.toHaveID">toHaveID</a>
</li>
<li data-type="method">
<a href="Matchers.Features.html#.toHaveNumericID">toHaveNumericID</a>
</li>
<li data-type="method">
<a href="Matchers.Features.html#.toHaveStringID">toHaveStringID</a>
</li>
</ul>
</li>
<li>
Expand Down
8 changes: 7 additions & 1 deletion docs/Core.Utilities.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<meta
name="description"
content="An extended set of matcher functions for the Jest Javascript unit testing framework tailored to evaluating with GeoJSON data."
content="An extended set of matcher functions for the Jest Javascript unit testing framework tailored to evaluating GeoJSON data."
/>

<meta
Expand Down Expand Up @@ -224,6 +224,12 @@ <h3>Namespaces</h3>
<li data-type="method">
<a href="Matchers.Features.html#.toHaveID">toHaveID</a>
</li>
<li data-type="method">
<a href="Matchers.Features.html#.toHaveNumericID">toHaveNumericID</a>
</li>
<li data-type="method">
<a href="Matchers.Features.html#.toHaveStringID">toHaveStringID</a>
</li>
</ul>
</li>
<li>
Expand Down
8 changes: 7 additions & 1 deletion docs/Core.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<meta
name="description"
content="An extended set of matcher functions for the Jest Javascript unit testing framework tailored to evaluating with GeoJSON data."
content="An extended set of matcher functions for the Jest Javascript unit testing framework tailored to evaluating GeoJSON data."
/>

<meta
Expand Down Expand Up @@ -224,6 +224,12 @@ <h3>Namespaces</h3>
<li data-type="method">
<a href="Matchers.Features.html#.toHaveID">toHaveID</a>
</li>
<li data-type="method">
<a href="Matchers.Features.html#.toHaveNumericID">toHaveNumericID</a>
</li>
<li data-type="method">
<a href="Matchers.Features.html#.toHaveStringID">toHaveStringID</a>
</li>
</ul>
</li>
<li>
Expand Down
8 changes: 7 additions & 1 deletion docs/Matchers.BoundingBoxes.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<meta
name="description"
content="An extended set of matcher functions for the Jest Javascript unit testing framework tailored to evaluating with GeoJSON data."
content="An extended set of matcher functions for the Jest Javascript unit testing framework tailored to evaluating GeoJSON data."
/>

<meta
Expand Down Expand Up @@ -224,6 +224,12 @@ <h3>Namespaces</h3>
<li data-type="method">
<a href="Matchers.Features.html#.toHaveID">toHaveID</a>
</li>
<li data-type="method">
<a href="Matchers.Features.html#.toHaveNumericID">toHaveNumericID</a>
</li>
<li data-type="method">
<a href="Matchers.Features.html#.toHaveStringID">toHaveStringID</a>
</li>
</ul>
</li>
<li>
Expand Down
8 changes: 7 additions & 1 deletion docs/Matchers.Coordinates.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<meta
name="description"
content="An extended set of matcher functions for the Jest Javascript unit testing framework tailored to evaluating with GeoJSON data."
content="An extended set of matcher functions for the Jest Javascript unit testing framework tailored to evaluating GeoJSON data."
/>

<meta
Expand Down Expand Up @@ -224,6 +224,12 @@ <h3>Namespaces</h3>
<li data-type="method">
<a href="Matchers.Features.html#.toHaveID">toHaveID</a>
</li>
<li data-type="method">
<a href="Matchers.Features.html#.toHaveNumericID">toHaveNumericID</a>
</li>
<li data-type="method">
<a href="Matchers.Features.html#.toHaveStringID">toHaveStringID</a>
</li>
</ul>
</li>
<li>
Expand Down
8 changes: 7 additions & 1 deletion docs/Matchers.FeatureCollections.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<meta
name="description"
content="An extended set of matcher functions for the Jest Javascript unit testing framework tailored to evaluating with GeoJSON data."
content="An extended set of matcher functions for the Jest Javascript unit testing framework tailored to evaluating GeoJSON data."
/>

<meta
Expand Down Expand Up @@ -224,6 +224,12 @@ <h3>Namespaces</h3>
<li data-type="method">
<a href="Matchers.Features.html#.toHaveID">toHaveID</a>
</li>
<li data-type="method">
<a href="Matchers.Features.html#.toHaveNumericID">toHaveNumericID</a>
</li>
<li data-type="method">
<a href="Matchers.Features.html#.toHaveStringID">toHaveStringID</a>
</li>
</ul>
</li>
<li>
Expand Down

0 comments on commit 8fe79f8

Please sign in to comment.