Skip to content

Commit e05d9e2

Browse files
committed
fix test naming
1 parent 2f8af57 commit e05d9e2

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

src/index.test.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
import { getAllFeatures } from "./index";
1+
import { queryAllFeatures } from "./index";
22

3-
test('basic query', async () => {
4-
const results = await getAllFeatures("https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/0");
3+
test("basic query", async () => {
4+
const results = await queryAllFeatures(
5+
"https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/0"
6+
);
57
// console.log('results', results.features.length);
68
expect(results.features.length).toEqual(3557);
79
});
810

9-
test('fail on bad url', async () => {
11+
test("fail on bad url", async () => {
1012
try {
11-
await getAllFeatures("https://sampleserver6.arcgisonline.com/asdf");
12-
} catch(e) {
13-
console.log('CATCH', e);
14-
expect(e.code).toEqual('HTTP 404');
13+
await queryAllFeatures("https://sampleserver6.arcgisonline.com/asdf");
14+
} catch (e) {
15+
console.log("CATCH", e);
16+
expect(e.code).toEqual("HTTP 404");
1517
}
16-
});
18+
});

0 commit comments

Comments
 (0)